Package org.jgroups.blocks
Class GridOutputStream
java.lang.Object
java.io.OutputStream
org.jgroups.blocks.GridOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGridOutputStream(GridFile file, boolean append, ReplCache<String, byte[]> cache, short repl_count, int chunk_size) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
cache
-
repl_count
final short repl_count -
chunk_size
final int chunk_size -
name
-
file
-
index
int index -
local_index
int local_index -
current_buffer
final byte[] current_buffer -
log
-
-
Constructor Details
-
GridOutputStream
GridOutputStream(GridFile file, boolean append, ReplCache<String, byte[]> cache, short repl_count, int chunk_size) throws FileNotFoundException- Throws:
FileNotFoundException
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getBytesRemainingInChunk
private int getBytesRemainingInChunk() -
getChunkNumber
private int getChunkNumber() -
reset
private void reset()
-