|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream net.sf.hermesftp.streams.BlockModeInputStream
public class BlockModeInputStream
Reads a stream formatted in block mode, extracts the data contents and registers restart markers.
Field Summary |
---|
Fields inherited from interface net.sf.hermesftp.streams.BlockModeConstants |
---|
DESC_CODE_EOF, DESC_CODE_EOR, DESC_CODE_ERR, DESC_CODE_REST |
Constructor Summary | |
---|---|
BlockModeInputStream(java.io.InputStream is)
Constructor. |
|
BlockModeInputStream(java.io.InputStream is,
byte[] eorMarker,
java.util.Map<java.lang.Long,java.lang.Long> restartMarkers)
Constructor. |
Method Summary | |
---|---|
java.util.Map<java.lang.Long,java.lang.Long> |
getRestartMarkers()
Getter method for the java bean restartMarkers . |
int |
read()
|
byte[] |
readRecord()
Reads a whole record without delimiters. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockModeInputStream(java.io.InputStream is, byte[] eorMarker, java.util.Map<java.lang.Long,java.lang.Long> restartMarkers)
is
- the input stream.eorMarker
- The marker bytes for EOR.restartMarkers
- Hash table to be filled with restart markers.public BlockModeInputStream(java.io.InputStream is)
is
- The input stream.Method Detail |
---|
public byte[] readRecord() throws java.io.IOException
readRecord
in interface RecordReadSupport
java.io.IOException
- Throws if reading fails.public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public java.util.Map<java.lang.Long,java.lang.Long> getRestartMarkers()
restartMarkers
.
restartMarkers
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |