public class EncodingChunk extends Chunk
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
strings
The read strings.
|
chunkLength, guid, position
Constructor and Description |
---|
EncodingChunk(java.math.BigInteger chunkLen)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addString(java.lang.String toAdd)
This method appends a String.
|
java.util.Collection<java.lang.String> |
getStrings()
This method returns a collection of all Strings which
were added due
addString(String) . |
java.lang.String |
prettyPrint(java.lang.String prefix)
This method creates a String containing useful information prepared to be
printed on STD-OUT.
|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
public EncodingChunk(java.math.BigInteger chunkLen)
chunkLen
- Length of current chunk.public void addString(java.lang.String toAdd)
toAdd
- String to add.public java.util.Collection<java.lang.String> getStrings()
addString(String)
.public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.Copyright © 2005-2013 java.net. All Rights Reserved.