public static class ByteUtil.ByteStream extends OutputStream
Constructor and Description |
---|
ByteStream() |
ByteStream(int capacity) |
Modifier and Type | Method and Description |
---|---|
byte |
get(int offset) |
byte[] |
getBytes() |
int |
getLength() |
void |
reset() |
void |
set(int offset,
byte b) |
void |
setBits(int offset,
byte b) |
void |
skip(int n) |
byte[] |
toByteArray() |
void |
trimTrailing(byte minTrimCode,
byte maxTrimCode) |
void |
write(byte[] b) |
void |
write(byte[] b,
int offset,
int length) |
void |
write(int b) |
void |
writeFill(int length,
byte b) |
void |
writeTo(ByteUtil.ByteStream out) |
close, flush
public int getLength()
public byte[] getBytes()
public void write(int b)
write
in class OutputStream
public void write(byte[] b)
write
in class OutputStream
public void write(byte[] b, int offset, int length)
write
in class OutputStream
public byte get(int offset)
public void set(int offset, byte b)
public void setBits(int offset, byte b)
public void writeFill(int length, byte b)
public void skip(int n)
public void writeTo(ByteUtil.ByteStream out)
public byte[] toByteArray()
public void reset()
public void trimTrailing(byte minTrimCode, byte maxTrimCode)
Copyright © 2005–2024 OpenHMS. All rights reserved.