diff -r 74139325d305 -r 7f84f4de2893 src/org/sonews/util/io/ArticleInputStream.java --- a/src/org/sonews/util/io/ArticleInputStream.java Sun Aug 29 18:17:37 2010 +0200 +++ b/src/org/sonews/util/io/ArticleInputStream.java Mon Jun 06 20:12:21 2011 +0200 @@ -15,7 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - package org.sonews.util.io; import java.io.ByteArrayOutputStream; @@ -29,15 +28,13 @@ * @author Christian Lins * @since sonews/0.5.0 */ -public class ArticleInputStream extends InputStream -{ +public class ArticleInputStream extends InputStream { private byte[] buf; private int pos = 0; public ArticleInputStream(final Article art) - throws IOException, UnsupportedEncodingException - { + throws IOException, UnsupportedEncodingException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(art.getHeaderSource().getBytes("UTF-8")); out.write("\r\n\r\n".getBytes()); @@ -56,8 +53,7 @@ * @return The byte read, or -1 if end of stream */ @Override - public synchronized int read() - { + public synchronized int read() { if (pos < buf.length) { return ((int) buf[pos++]) & 0xFF; } else {