Modifier and Type | Method and Description |
---|---|
static byte[] |
dropPreamble(InputStream input,
int length)
Drops bytes until a preamble byte sequence was occurred.
|
static void |
putPreamble(OutputStream output)
Puts a preamble byte sequence into the
OutputStream . |
public static void putPreamble(OutputStream output) throws IOException
OutputStream
.output
- the target streamIOException
- if failed to put a preamble bytespublic static byte[] dropPreamble(InputStream input, int length) throws IOException
input
- the source streamlength
- the max byte length before preamble bytes is occurredIOException
- if failed to drop bytesCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.