Merge branch 'release-0.8.9'
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / StringBucket.java
index 2e2a102..c96a3cd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * FreenetSone - TemplateBucket.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
@@ -18,7 +18,6 @@
 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;
@@ -68,7 +67,7 @@ public class StringBucket implements Bucket {
         * {@inheritDoc}
         */
        @Override
-       public Bucket createShadow() throws IOException {
+       public Bucket createShadow() {
                return new StringBucket(string);
        }
 
@@ -84,7 +83,7 @@ public class StringBucket implements Bucket {
         * {@inheritDoc}
         */
        @Override
-       public InputStream getInputStream() throws IOException {
+       public InputStream getInputStream() {
                return new ByteArrayInputStream(string.getBytes(encoding));
        }
 
@@ -100,7 +99,7 @@ public class StringBucket implements Bucket {
         * {@inheritDoc}
         */
        @Override
-       public OutputStream getOutputStream() throws IOException {
+       public OutputStream getOutputStream() {
                return null;
        }