Package org.verapdf.as.io
Class ASInputStreamWrapper
java.lang.Object
java.io.InputStream
org.verapdf.as.io.ASInputStream
org.verapdf.as.io.ASInputStreamWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable
Class represents ASInputStream that can be constructed from another
ASInputStream.
- Author:
- Sergey Shemyakov
-
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, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
ASInputStreamWrapper
-
-
Method Details
-
read
- Specified by:
readin classASInputStream- Throws:
IOException
-
read
- Specified by:
readin classASInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- 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
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein 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
-