Package net.covers1624.coffeegrinder
Interface OutputSink
- All Superinterfaces:
AutoCloseable,Closeable
Collect decompilation results or input resources.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputSinkCreate anOutputSinkwhich writes into the given directory.voidWrite the given file to the output.static OutputSinkzip(OutputStream os) Create a zipOutputSink.static OutputSinkCreate a zipOutputSink.static OutputSinkzip(ZipOutputStream zos) Create a zipOutputSinkusing the specifiedZipOutputStream.
-
Method Details
-
write
Write the given file to the output.- Parameters:
path- The relative path of the output.data- The data for the file to write.- Throws:
IOException
-
zip
Create a zipOutputSink.- Parameters:
file- The path to the zip file.- Returns:
- The sink.
- Throws:
IOException
-
zip
Create a zipOutputSink.- Parameters:
os- The stream to write to.- Returns:
- The sink.
-
zip
Create a zipOutputSinkusing the specifiedZipOutputStream.- Parameters:
zos- The existing stream.- Returns:
- The sink.
-
dir
Create anOutputSinkwhich writes into the given directory.- Parameters:
base- The directory to write into.- Returns:
- The sink.
-