public abstract class BranchingInputStream extends InputStream
Modifier | Constructor and Description |
---|---|
protected |
BranchingInputStream(BranchingInputStream parent)
Initialise the
BranchingInputStream with the specified parent. |
Modifier and Type | Method and Description |
---|---|
abstract BranchingInputStream |
branch()
Creates a new branch at this stream's current position.
|
abstract void |
close()
Closes this branching stream and all of the branches created from it.
|
abstract BranchingInputStream |
copy()
Creates a twin of this stream at this stream's current position.
|
BranchingInputStream |
parent()
Returns the parent branching input stream from which this branch was
created, or
null if this is the trunk. |
available, mark, markSupported, read, read, read, reset, skip
protected BranchingInputStream(BranchingInputStream parent)
BranchingInputStream
with the specified parent.parent
- The parent stream, or null if it is the trunk.public abstract BranchingInputStream branch() throws IOException
IOException
- if an I/O exception occurs.public abstract BranchingInputStream copy() throws IOException
IOException
- if an I/O exception occurs.public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
- if an I/O exception occurs.public BranchingInputStream parent()
null
if this is the trunk.null
if this is the trunk.Copyright © 2010-2018, ForgeRock All Rights Reserved.