Package w.util.io
Class CappedByteOutput
java.lang.Object
w.util.io.AbstractByteOutput
w.util.io.CappedByteOutput
- All Implemented Interfaces:
ByteOutput
- Author:
- whilein
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ByteOutputcreate(int cap) protected voidensure(int count) intvoidsetLength(int length) byte @NotNull []@NotNull StringtoString()@NotNull ByteOutputwrite(int i) Methods inherited from class w.util.io.AbstractByteOutput
getCapacity, write, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface w.util.io.ByteOutput
getPosition, setPosition
-
Method Details
-
create
-
write
- Specified by:
writein interfaceByteOutput- Overrides:
writein classAbstractByteOutput
-
setLength
public void setLength(int length) -
getLength
public int getLength() -
ensure
protected void ensure(int count) - Specified by:
ensurein classAbstractByteOutput
-
toString
- Specified by:
toStringin interfaceByteOutput- Overrides:
toStringin classObject
-
toByteArray
public byte @NotNull [] toByteArray()
-