Package crosby.binary.file
Class BlockOutputStream
- java.lang.Object
-
- crosby.binary.file.BlockOutputStream
-
-
Constructor Summary
Constructors Constructor Description BlockOutputStream(OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidsetCompress(crosby.binary.file.CompressFlags flag)voidsetCompress(String s)voidwrite(FileBlock block)Write a block with the stream's default compression flagvoidwrite(FileBlock block, crosby.binary.file.CompressFlags compression)Write a specific block with a specific compression flags
-
-
-
Constructor Detail
-
BlockOutputStream
public BlockOutputStream(OutputStream output)
-
-
Method Detail
-
setCompress
public void setCompress(crosby.binary.file.CompressFlags flag)
-
setCompress
public void setCompress(String s)
-
write
public void write(FileBlock block) throws IOException
Write a block with the stream's default compression flag- Throws:
IOException
-
write
public void write(FileBlock block, crosby.binary.file.CompressFlags compression) throws IOException
Write a specific block with a specific compression flags- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-