Package org.verapdf.as.io
Class ASConcatenatedInputStream
java.lang.Object
java.io.InputStream
org.verapdf.as.io.ASInputStream
org.verapdf.as.io.ASConcatenatedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Author:
- Maksim Bezrukov
-
Field Summary
Fields inherited from class org.verapdf.as.io.ASInputStream
isClosed, isSourceClosed, resourceUsers
-
Constructor Summary
-
Method Summary
Methods inherited from class org.verapdf.as.io.ASInputStream
createStreamFromStream
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
ASConcatenatedInputStream
-
-
Method Details
-
read
- Specified by:
read
in classASInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classASInputStream
- Throws:
IOException
-
skip
- Specified by:
skip
in classASInputStream
- Throws:
IOException
-
reset
- Specified by:
reset
in classASInputStream
- Throws:
IOException
-
closeResource
Description copied from class:ASInputStream
Closes stream resource. There is a difference between closing stream and closing it's resource. Several streams may have the same resource (e. g. the same file stream) and resource should be closed only after all streams using it are closed.- Specified by:
closeResource
in classASInputStream
- Throws:
IOException
-
incrementResourceUsers
public void incrementResourceUsers()Description copied from class:ASInputStream
Method increments number of resource users.- Specified by:
incrementResourceUsers
in classASInputStream
-
decrementResourceUsers
public void decrementResourceUsers()Description copied from class:ASInputStream
Method decrements number of resource users.- Specified by:
decrementResourceUsers
in classASInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classASInputStream
- Throws:
IOException
-