@FunctionalInterface
public interface EntryWriter
Modifier and Type | Method and Description |
---|---|
default int |
size()
Return the size of the content that will be written, or
-1 if the size is
not known. |
void |
write(java.io.OutputStream outputStream)
Write entry data to the specified output stream.
|
void write(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- the destination for the datajava.io.IOException
- in case of I/O errorsdefault int size()
-1
if the size is
not known.