class ByteArray.InternalOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
ByteArray.InternalOutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream
Parent documentation: |
void |
flush()
Flush last changes
Parent documentation: |
void |
write(byte[] b)
Write an array of bytes.
|
void |
write(byte[] b,
int off,
int len)
Write a part off an array of bytes
Parent documentation: |
void |
write(int b)
Write one byte
Parent documentation: |
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
- On closing issueOutputStream.close()
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- On flushing issueOutputStream.flush()
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
b
- Array to writejava.io.IOException
- On writing issueOutputStream.write(byte[])
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
b
- Array to writeoff
- Offset where start read the arraylen
- Number of bytes to writejava.io.IOException
- on writing issueOutputStream.write(byte[], int, int)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- Byte to writejava.io.IOException
- On writing issueOutputStream.write(int)