Package org.apache.ivy.util
Class FileUtil.UncloseInputStream
java.lang.Object
java.io.InputStream
org.apache.ivy.util.FileUtil.UncloseInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- FileUtil
Wrap an input stream and do not close the stream on call to close(). Used to avoid closing a
ZipInputStream
used with Pack200.Unpacker#unpack(File, JarOutputStream)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
wrapped
-
-
Constructor Details
-
UncloseInputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
hashCode
public int hashCode() -
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
equals
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
toString
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-