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, skippublic Route(byte[] start,
byte[] end)
start - start markerend - end markerpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic byte[] getStart()
public byte[] getEnd()
Copyright © 2016. All rights reserved.