public class PicaPlainInputStream extends PatternInputStream
Modifier and Type | Field and Description |
---|---|
protected int |
begin |
protected byte[] |
buffer |
protected int |
end |
protected BytesStreamOutput |
ref |
Constructor and Description |
---|
PicaPlainInputStream(java.io.InputStream in,
byte[] pattern,
MarcGenerator marcGenerator) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<Chunk<byte[],BytesReference>> |
chunks()
This methods creates a Java 8 stream of chunks.
|
protected void |
processChunk(Chunk<byte[],BytesReference> chunk)
This method can be overriden by classes to extend the processing of a chunk
before it is returned to the caller.
|
crlf, lf, readChunk
available, close, mark, markSupported, read, read, reset, skip
protected final BytesStreamOutput ref
protected byte[] buffer
protected int begin
protected int end
public PicaPlainInputStream(java.io.InputStream in, byte[] pattern, MarcGenerator marcGenerator)
protected void processChunk(Chunk<byte[],BytesReference> chunk) throws java.io.IOException
PatternInputStream
processChunk
in class PatternInputStream
chunk
- the chunk to be processed.java.io.IOException
- if chunk processing failspublic java.util.stream.Stream<Chunk<byte[],BytesReference>> chunks()
chunks
in interface ChunkStream<byte[],BytesReference>