Package com.attivio.util.ft
Class TransactionStorage.FrameOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- com.attivio.util.ft.TransactionStorage.FrameOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- TransactionStorage
public static final class TransactionStorage.FrameOutputStream extends java.io.ByteArrayOutputStream
-
-
Constructor Summary
Constructors Constructor Description FrameOutputStream(byte frameId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()bytegetFrameId()voidwrite(byte[] b, int offset, int length)voidwrite(int b)voidwriteDocument(IngestDocument doc)protected voidwriteInt(int value)voidwriteMessageId(MessageId mid)NOTE: this write bypasses the checksummed buffer.voidwriteObject(java.lang.Object o)protected voidwriteShort(int value)voidwriteString(java.lang.String value)NOTE: this write bypasses the checksummed buffer.
-
-
-
Method Detail
-
getFrameId
public byte getFrameId()
-
writeShort
protected void writeShort(int value)
-
writeInt
protected void writeInt(int value)
-
writeMessageId
public void writeMessageId(MessageId mid) throws java.io.IOException
NOTE: this write bypasses the checksummed buffer.- Throws:
java.io.IOException
-
writeString
public final void writeString(java.lang.String value) throws java.io.IOExceptionNOTE: this write bypasses the checksummed buffer.- Throws:
java.io.IOException
-
writeDocument
public void writeDocument(IngestDocument doc) throws java.io.IOException
- Throws:
java.io.IOException
-
writeObject
public void writeObject(java.lang.Object o) throws java.io.IOException- Throws:
java.io.IOException
-
write
public void write(byte[] b, int offset, int length)- Overrides:
writein classjava.io.ByteArrayOutputStream
-
write
public void write(int b)
- Overrides:
writein classjava.io.ByteArrayOutputStream
-
flush
public void flush()
- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream
-
-