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 ZipEntrySourcenull).public ZipEntry getEntry()
getEntry in interface ZipEntrySourcenull).public InputStream getInputStream() throws IOException
getInputStream in interface ZipEntrySourcenull if this entry is a directory.IOException - can throw getting the InputStreamCopyright © 2017 ZeroTurnaround. All rights reserved.