Interface EntryWriter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface used to write jar entry data.
- Since:
- 2.3.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
size()
Return the size of the content that will be written, or-1
if the size is not known.void
write
(OutputStream outputStream) Write entry data to the specified output stream.
-
Method Details
-
write
Write entry data to the specified output stream.- Parameters:
outputStream
- the destination for the data- Throws:
IOException
- in case of I/O errors
-
size
default int size()Return the size of the content that will be written, or-1
if the size is not known.- Returns:
- the size of the content
-