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.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/xagasoft/gats/GatsOutputStream.java b/java/com/xagasoft/gats/GatsOutputStream.java
index c67d345..c71491b 100644
--- a/java/com/xagasoft/gats/GatsOutputStream.java
+++ b/java/com/xagasoft/gats/GatsOutputStream.java
@@ -13,10 +13,10 @@ import java.io.DataOutputStream;
13 * Each time you write an object with this class it actually writes a Gats 13 * Each time you write an object with this class it actually writes a Gats
14 * Packet data structure which consists of a 5 byte header followed by the 14 * Packet data structure which consists of a 5 byte header followed by the
15 * encoded GatsObject data. In the packet header is information about which 15 * encoded GatsObject data. In the packet header is information about which
16 * version of gats is in use, which options are enabled, etc. This ensures 16 * version of Gats is in use, which options are enabled, etc. This ensures
17 * that Gats is backward compatible. 17 * that Gats is backward compatible.
18 * <p> 18 * <p>
19 * According to the GATS standard only fully formed gats packets may be written 19 * According to the GATS standard only fully formed Gats packets may be written
20 * to files or sockets to ensure integrity and context. Since each packet can 20 * to files or sockets to ensure integrity and context. Since each packet can
21 * only contain one GatsObject that means that each writeObject call should 21 * only contain one GatsObject that means that each writeObject call should
22 * write one fully formed message or data structure to ensure maximum 22 * write one fully formed message or data structure to ensure maximum
@@ -26,9 +26,9 @@ import java.io.DataOutputStream;
26 * it is highly advisable to pass in a BufferedOutputStream or similar structure 26 * it is highly advisable to pass in a BufferedOutputStream or similar structure
27 * to ensure maximum performance. 27 * to ensure maximum performance.
28 * <p> 28 * <p>
29 * The gats format stipulates that all zero bytes found in between packets are 29 * The Gats format stipulates that all zero bytes found in between packets are
30 * simply ignored, which allows you to pad streams of sequential gats objects 30 * simply ignored, which allows you to pad streams of sequential Gats objects
31 * if necesarry. This can be handy in some encoding/compression/encryption 31 * if necessary. This can be handy in some encoding/compression/encryption
32 * schemes. 32 * schemes.
33 *@see com.xagasoft.gats.GatsInputStream 33 *@see com.xagasoft.gats.GatsInputStream
34 */ 34 */