projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add accessors for testing.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
StringBucket.java
diff --git
a/src/main/java/net/pterodactylus/sone/freenet/StringBucket.java
b/src/main/java/net/pterodactylus/sone/freenet/StringBucket.java
index
2993b2f
..
c96a3cd
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/freenet/StringBucket.java
+++ b/
src/main/java/net/pterodactylus/sone/freenet/StringBucket.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - StringBucket.java - Copyright © 2010 David Roden
+ * Sone - StringBucket.java - Copyright © 2010
–2013
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-18,7
+18,6
@@
package net.pterodactylus.sone.freenet;
import java.io.ByteArrayInputStream;
package net.pterodactylus.sone.freenet;
import java.io.ByteArrayInputStream;
-import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.Charset;
@@
-84,7
+83,7
@@
public class StringBucket implements Bucket {
* {@inheritDoc}
*/
@Override
* {@inheritDoc}
*/
@Override
- public InputStream getInputStream()
throws IOException
{
+ public InputStream getInputStream() {
return new ByteArrayInputStream(string.getBytes(encoding));
}
return new ByteArrayInputStream(string.getBytes(encoding));
}
@@
-100,7
+99,7
@@
public class StringBucket implements Bucket {
* {@inheritDoc}
*/
@Override
* {@inheritDoc}
*/
@Override
- public OutputStream getOutputStream()
throws IOException
{
+ public OutputStream getOutputStream() {
return null;
}
return null;
}