Class WriteOnlyZipFileIO
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.file.AbstractFileIO
-
- org.apache.ignite.internal.processors.cache.persistence.file.FileIODecorator
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.dump.BufferedFileIO
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.dump.WriteOnlyZipFileIO
-
- All Implemented Interfaces:
AutoCloseable,FileIO
public class WriteOnlyZipFileIO extends BufferedFileIO
FileIOthat allows to write ZIP compressed file. It doesn't support reading or random access. It is not designed for writing concurrently from several threads.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.file.FileIODecorator
delegate
-
-
Constructor Summary
Constructors Constructor Description WriteOnlyZipFileIO(FileIO fileIO, String entryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes current file.protected voidwriteBytes(byte[] srcBuf, int off, int len)Writes byte array.-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.snapshot.dump.BufferedFileIO
writeByte, writeFully
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.file.FileIODecorator
clear, force, force, getFileSystemBlockSize, getSparseSize, map, position, position, punchHole, read, read, read, size, transferFrom, transferTo, write, write, write
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.file.AbstractFileIO
readFully, readFully, readFully, writeFully, writeFully
-
-
-
-
Constructor Detail
-
WriteOnlyZipFileIO
public WriteOnlyZipFileIO(FileIO fileIO, String entryName) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeBytes
protected void writeBytes(byte[] srcBuf, int off, int len) throws IOExceptionWrites byte array.- Overrides:
writeBytesin classBufferedFileIO- Throws:
IOException- If some I/O error occurs.
-
close
public void close() throws IOExceptionCloses current file.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFileIO- Overrides:
closein classBufferedFileIO- Throws:
IOException- If some I/O error occurs.
-
-