aboutsummaryrefslogtreecommitdiff
path: root/java/com/xagasoft/gats/GatsOutputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/xagasoft/gats/GatsOutputStream.java')
-rw-r--r--java/com/xagasoft/gats/GatsOutputStream.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/xagasoft/gats/GatsOutputStream.java b/java/com/xagasoft/gats/GatsOutputStream.java
index 7bdfcde..a0f4503 100644
--- a/java/com/xagasoft/gats/GatsOutputStream.java
+++ b/java/com/xagasoft/gats/GatsOutputStream.java
@@ -13,7 +13,7 @@ public class GatsOutputStream
13 this.os = os; 13 this.os = os;
14 } 14 }
15 15
16 public void writeObject( GatsObject obj ) throws java.io.IOException 16 public int writeObject( GatsObject obj ) throws java.io.IOException
17 { 17 {
18 ByteArrayOutputStream bos1 = new ByteArrayOutputStream(); 18 ByteArrayOutputStream bos1 = new ByteArrayOutputStream();
19 19
@@ -29,6 +29,7 @@ public class GatsOutputStream
29 bos2.write( bos1.toByteArray() ); 29 bos2.write( bos1.toByteArray() );
30 30
31 os.write( bos2.toByteArray() ); 31 os.write( bos2.toByteArray() );
32 return bos1.size()+5;
32 } 33 }
33}; 34};
34 35