- java.lang.Object
-
- jp.cafebabe.kunai.sink.AbstractDataSink
-
- jp.cafebabe.kunai.sink.JarFileDataSink
-
- All Implemented Interfaces:
AutoCloseable
,DataSink
- Direct Known Subclasses:
WarFileDataSink
public class JarFileDataSink extends AbstractDataSink
-
-
Constructor Summary
Constructors Constructor Description JarFileDataSink(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this instance.void
consume(InputStream in, Entry entry)
write given data from stream to this instance.
-
-
-
Constructor Detail
-
JarFileDataSink
public JarFileDataSink(Path path)
-
-
Method Detail
-
close
public void close() throws IOException
Description copied from class:AbstractDataSink
Close this instance.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDataSink
- Overrides:
close
in classAbstractDataSink
- Throws:
IOException
- I/O error
-
consume
public void consume(InputStream in, Entry entry) throws KunaiException
Description copied from interface:DataSink
write given data from stream to this instance.- Parameters:
in
- writing dataentry
- meta data of data- Throws:
KunaiException
- I/O error
-
-