Modifier and Type | Field | Description |
---|---|---|
private int |
end |
|
private byte[] |
pageData |
|
private int |
position |
|
private int |
start |
Constructor | Description |
---|---|
ArrayOutputStream() |
|
ArrayOutputStream(byte[] data) |
Modifier and Type | Method | Description |
---|---|---|
int |
clearLimit() |
Clear any limit set by setLimit.
|
int |
getPosition() |
|
void |
setData(byte[] data) |
|
void |
setLimit(int length) |
Set the limit of the data that can be read or written.
|
void |
setPosition(int newPosition) |
Set the position of the stream pointer.
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
private byte[] pageData
private int start
private int end
private int position
public ArrayOutputStream()
public ArrayOutputStream(byte[] data)
public void setData(byte[] data)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public int getPosition()
public void setPosition(int newPosition) throws java.io.IOException
java.io.IOException
public void setLimit(int length) throws java.io.IOException
Limit
On input classes (e.g. InputStreams) any attempt to read or skip beyond the limit will result in an end of file indication (e.g. read() methods returning -1 or throwing EOFException).
On output classes (e.g. OutputStream) any attempt to write more beyond the limit will result in an EOFException
public int clearLimit()
Limit
clearLimit
in interface Limit
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.