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
Constructors -
Method Summary
Methods inherited from class org.verapdf.as.io.ASInputStream
createStreamFromStreamMethods 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:
readin classASInputStream- Throws:
IOException
-
read
- Specified by:
readin classASInputStream- Throws:
IOException
-
skip
- Specified by:
skipin classASInputStream- Throws:
IOException
-
reset
- Specified by:
resetin classASInputStream- Throws:
IOException
-
closeResource
Description copied from class:ASInputStreamCloses 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:
closeResourcein classASInputStream- Throws:
IOException
-
incrementResourceUsers
public void incrementResourceUsers()Description copied from class:ASInputStreamMethod increments number of resource users.- Specified by:
incrementResourceUsersin classASInputStream
-
decrementResourceUsers
public void decrementResourceUsers()Description copied from class:ASInputStreamMethod decrements number of resource users.- Specified by:
decrementResourceUsersin classASInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classASInputStream- Throws:
IOException
-