Package org.apache.batik.bridge
Class SVGImageElementBridge.ProtectedStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.apache.batik.bridge.SVGImageElementBridge.ProtectedStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
SVGImageElementBridge
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) boolean
(package private) boolean
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.BufferedInputStream
available, read, read, skip, transferTo
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes
-
Field Details
-
BUFFER_SIZE
static final int BUFFER_SIZE- See Also:
-
wasClosed
boolean wasClosed -
isTied
boolean isTied
-
-
Constructor Details
-
ProtectedStream
ProtectedStream(InputStream is) -
ProtectedStream
ProtectedStream(InputStream is, int size)
-
-
Method Details
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classBufferedInputStream
-
mark
public void mark(int sz) - Overrides:
mark
in classBufferedInputStream
-
reset
- Overrides:
reset
in classBufferedInputStream
- Throws:
IOException
-
retry
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classBufferedInputStream
- Throws:
IOException
-
tie
Let stream know that it is perminately tied to one image decoder. This means that it can allow that decoder to close the stream.- Throws:
IOException
-
release
public void release()Close the stream.
-