Package com.yahoo.io
Class GrowableBufferOutputStream
java.lang.Object
java.io.OutputStream
com.yahoo.io.GrowableBufferOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Author:
- Bjørn Borud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
channelWrite
(WritableByteChannel channel) void
clear()
void
clearAll()
void
void
close()
void
flush()
int
toString()
int
void
write
(byte[] b) void
write
(byte[] cbuf, int off, int len) void
write
(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
GrowableBufferOutputStream
public GrowableBufferOutputStream(int bufferSize, int maxBuffers)
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
toString
-
write
public void write(int b) - Specified by:
write
in classOutputStream
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-
channelWrite
- Throws:
IOException
-
numWritableBuffers
public int numWritableBuffers() -
clear
public void clear() -
clearCache
public void clearCache() -
clearAll
public void clearAll() -
writableSize
public int writableSize() -
getWritableBuffers
-