public class RoutedInputStream.Route extends InputStream
Constructor and Description |
---|
Route(byte[] start,
byte[] end)
Creates a route with given start and end marker.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream, and discards any bytes up to and including the end
marker.
|
byte[] |
getEnd()
Returns end marker.
|
byte[] |
getStart()
Returns start marker.
|
int |
read()
Returns bytes of this specific route, starting with the start marker,
followed by any bytes up to and including the end marker.
|
available, mark, markSupported, read, read, reset, skip
public Route(byte[] start, byte[] end)
start
- start markerend
- end markerpublic int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public byte[] getStart()
public byte[] getEnd()
Copyright © 2016. All rights reserved.