Package org.zeroturnaround.zip
Class ByteSource
java.lang.Object
org.zeroturnaround.zip.ByteSource
- All Implemented Interfaces:
ZipEntrySource
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionByteSource
(String path, byte[] bytes) ByteSource
(String path, byte[] bytes, int compressionMethod) ByteSource
(String path, byte[] bytes, long time) ByteSource
(String path, byte[] bytes, long time, int compressionMethod) -
Method Summary
-
Field Details
-
path
-
bytes
private final byte[] bytes -
time
private final long time -
compressionMethod
private final int compressionMethod -
crc
private final long crc
-
-
Constructor Details
-
ByteSource
-
ByteSource
-
ByteSource
-
ByteSource
-
-
Method Details
-
getPath
- Specified by:
getPath
in interfaceZipEntrySource
- Returns:
- path of the given entry (not
null
).
-
getEntry
- Specified by:
getEntry
in interfaceZipEntrySource
- Returns:
- meta-data of the given entry (not
null
).
-
getInputStream
- Specified by:
getInputStream
in interfaceZipEntrySource
- Returns:
- an input stream of the given entry
or
null
if this entry is a directory. - Throws:
IOException
- can throw getting the InputStream
-
toString
-