public class DataEntryCopier extends java.lang.Object implements DataEntryReader
DataEntryReader
writes the ZIP entries and files that it reads to a given DataEntryWriter
.Constructor and Description |
---|
DataEntryCopier(DataEntryWriter dataEntryWriter)
Creates a new DataEntryCopier.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyData(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Copies all data that it can read from the given input stream to the given output stream.
|
static void |
main(java.lang.String[] args)
A main method for testing file/archive/directory copying.
|
void |
read(DataEntry dataEntry)
Reads the given data entry.
|
public DataEntryCopier(DataEntryWriter dataEntryWriter)
public void read(DataEntry dataEntry) throws java.io.IOException
DataEntryReader
read
in interface DataEntryReader
java.io.IOException
protected void copyData(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)