Package score.impl
Class RLPObjectWriter.ByteArrayBuilder
- java.lang.Object
-
- java.io.OutputStream
-
- score.impl.RLPObjectWriter.ByteArrayBuilder
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- RLPObjectWriter
public static class RLPObjectWriter.ByteArrayBuilder extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description ByteArrayBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
array()
void
close()
void
flush()
int
size()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Method Detail
-
write
public void write(int b)
- Specified by:
write
in classjava.io.OutputStream
-
write
public void write(byte[] b)
- Overrides:
write
in classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
-
flush
public void flush()
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
-
array
public byte[] array()
-
size
public int size()
-
-