public abstract class TaggedInputStream extends ByteCountInputStream
| Modifier and Type | Field and Description |
|---|---|
protected ActionSet |
actionSet
Set of actions that can be used by this Stream
|
protected TagSet |
tagSet
Set of tags that can be used by this Stream
|
littleBIT_MASK, FIELD_MASK, MASK_SIZE, ONES, ZERO| Constructor and Description |
|---|
TaggedInputStream(InputStream in,
TagSet tagSet,
ActionSet actionSet)
Creates a Tagged Input Stream
|
TaggedInputStream(InputStream in,
TagSet tagSet,
ActionSet actionSet,
boolean littleEndian)
Creates a Tagged Input Stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(Action action)
Add action to action set.
|
void |
addTag(Tag tag)
Add tag to tagset
|
TagHeader |
getTagHeader()
Returns the currently valid TagHeader.
|
Action |
readAction()
Reads action.
|
protected abstract ActionHeader |
readActionHeader()
Decodes and returns the ActionHeader, which includes an actionCode and a
length.
|
Tag |
readTag()
Read a tag.
|
protected abstract TagHeader |
readTagHeader()
Decodes and returns the TagHeader, which includes a TagID and a length.
|
getLength, popBuffer, pushBuffer, readreadAsciiZString, readBoolean, readByte, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readInt, readLine, readLong, readShort, readShort, readString, readUnsignedByte, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUnsignedShort, readUTF, skipBytesbyteAlign, fetchByte, readBitFlag, readFBits, readSBits, readUBitsskip, startDecompressingreadavailable, close, mark, markSupported, read, resetprotected TagSet tagSet
protected ActionSet actionSet
public TaggedInputStream(InputStream in, TagSet tagSet, ActionSet actionSet)
in - stream to read fromtagSet - available tag setactionSet - available action setpublic TaggedInputStream(InputStream in, TagSet tagSet, ActionSet actionSet, boolean littleEndian)
in - stream to read fromtagSet - available tag setactionSet - available action setlittleEndian - true if stream is little endianpublic void addTag(Tag tag)
tag - new tagprotected abstract TagHeader readTagHeader() throws IOException
IOException - if read failspublic Tag readTag() throws IOException
IOException - if read failspublic TagHeader getTagHeader()
public void addAction(Action action)
action - new actionprotected abstract ActionHeader readActionHeader() throws IOException
IOException - if read failspublic Action readAction() throws IOException
IOException - if read failsCopyright © 2016. All rights reserved.