Some refactoring and added some JUnit tests

This commit is contained in:
Ziver Koc 2016-09-27 16:56:51 +02:00
parent d107cd504c
commit 24c4fac26d
13 changed files with 168 additions and 100 deletions

View file

@ -200,10 +200,16 @@ public class JSONObjectOutputStream extends OutputStream implements ObjectOutput
}
public void flush() throws IOException {
super.flush();
out.flush();
}
public void close() throws IOException {
if (out != null) {
out.flush();
out.close();
}
}
@Override public void writeBoolean(boolean v) throws IOException {