public class ByteSource extends Object implements ZipEntrySource
Constructor and Description |
---|
ByteSource(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) |
Modifier and Type | Method and Description |
---|---|
ZipEntry |
getEntry() |
InputStream |
getInputStream() |
String |
getPath() |
String |
toString() |
public ByteSource(String path, byte[] bytes)
public ByteSource(String path, byte[] bytes, long time)
public ByteSource(String path, byte[] bytes, int compressionMethod)
public ByteSource(String path, byte[] bytes, long time, int compressionMethod)
public String getPath()
getPath
in interface ZipEntrySource
null
).public ZipEntry getEntry()
getEntry
in interface ZipEntrySource
null
).public InputStream getInputStream() throws IOException
getInputStream
in interface ZipEntrySource
null
if this entry is a directory.IOException
- can throw getting the InputStreamCopyright © 2017 ZeroTurnaround. All rights reserved.