public abstract class ASInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isClosed |
protected boolean |
isSourceClosed |
protected IntReference |
resourceUsers |
| Constructor and Description |
|---|
ASInputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract void |
closeResource()
Closes stream resource.
|
static ASInputStream |
createStreamFromStream(ASInputStream stream)
Creates copy of stream.
|
abstract void |
decrementResourceUsers()
Method decrements number of resource users.
|
abstract void |
incrementResourceUsers()
Method increments number of resource users.
|
abstract int |
read() |
abstract int |
read(byte[] buffer,
int size) |
abstract void |
reset() |
abstract int |
skip(int size) |
available, mark, markSupported, read, read, skipprotected boolean isClosed
protected boolean isSourceClosed
protected IntReference resourceUsers
public abstract int read()
throws IOException
read in class InputStreamIOExceptionpublic abstract int read(byte[] buffer,
int size)
throws IOException
IOExceptionpublic abstract int skip(int size)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic abstract void reset()
throws IOException
reset in class InputStreamIOExceptionpublic abstract void closeResource()
throws IOException
IOExceptionpublic abstract void incrementResourceUsers()
closeResourcepublic abstract void decrementResourceUsers()
closeResourcepublic static ASInputStream createStreamFromStream(ASInputStream stream)
Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.