Package w.util.io
Class AbstractByteOutput
java.lang.Object
w.util.io.AbstractByteOutput
- All Implemented Interfaces:
ByteOutput
- Direct Known Subclasses:
CappedByteOutput,UncappedByteOutput
- Author:
- whilein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidensure(int count) int@NotNull ByteOutputwrite(byte @NotNull [] bytes) @NotNull ByteOutputwrite(byte @NotNull [] bytes, int off, int len) @NotNull ByteOutputwrite(int i) @NotNull ByteOutputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface w.util.io.ByteOutput
getLength, getPosition, setLength, setPosition, toByteArray, toString
-
Constructor Details
-
AbstractByteOutput
protected AbstractByteOutput(byte[] array)
-
-
Method Details
-
ensure
protected abstract void ensure(int count) -
write
- Specified by:
writein interfaceByteOutput
-
write
- Specified by:
writein interfaceByteOutput
-
write
- Specified by:
writein interfaceByteOutput
-
write
- Specified by:
writein interfaceByteOutput
-
getCapacity
public int getCapacity()- Specified by:
getCapacityin interfaceByteOutput
-