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:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- SVGImageElementBridge
public static class SVGImageElementBridge.ProtectedStream extends java.io.BufferedInputStream
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intBUFFER_SIZE(package private) booleanisTied(package private) booleanwasClosed
-
Constructor Summary
Constructors Constructor Description ProtectedStream(java.io.InputStream is)ProtectedStream(java.io.InputStream is, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int sz)booleanmarkSupported()voidrelease()Close the stream.voidreset()voidretry()voidtie()Let stream know that it is perminately tied to one image decoder.
-
-
-
Field Detail
-
BUFFER_SIZE
static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
wasClosed
boolean wasClosed
-
isTied
boolean isTied
-
-
Method Detail
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.BufferedInputStream
-
mark
public void mark(int sz)
- Overrides:
markin classjava.io.BufferedInputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.BufferedInputStream- Throws:
java.io.IOException
-
retry
public void retry() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.BufferedInputStream- Throws:
java.io.IOException
-
tie
public void tie() throws java.io.IOExceptionLet stream know that it is perminately tied to one image decoder. This means that it can allow that decoder to close the stream.- Throws:
java.io.IOException
-
release
public void release()
Close the stream.
-
-