public final class CompositeNut.CompositeInputStream extends InputStream
This class keeps the position of each nut in the read content. When this stream has been entirely read, it's possible to retrieve the nut containing the byte at a specified position.
| Modifier and Type | Method and Description |
|---|---|
List<ConvertibleNut> |
getComposition()
Gets the outer composition list.
|
ConvertibleNut |
nutAt(int position)
Retrieves the nut owning the byte at the given position/
|
int |
read() |
available, close, mark, markSupported, read, read, reset, skippublic List<ConvertibleNut> getComposition()
Gets the outer composition list.
public ConvertibleNut nutAt(int position)
Retrieves the nut owning the byte at the given position/
position - the positionnull if the given position is not in the interval [0, length - 1]public int read()
throws IOException
read in class InputStreamIOExceptionCopyright © 2012-2015. All Rights Reserved.