|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
org.intermine.util.SensibleByteArrayOutputStream
org.intermine.sql.writebatch.PostgresByteArrayOutputStream
public class PostgresByteArrayOutputStream
A subclass of SensibleByteArrayOutputStream that has extra methods useful for reducing the memory footprint of the Postgres database write operations.
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Constructor Summary | |
|---|---|
PostgresByteArrayOutputStream()
|
|
PostgresByteArrayOutputStream(int size)
|
|
| Method Summary | |
|---|---|
byte[] |
getBuffer()
Returns the byte buffer without copying it. |
| Methods inherited from class org.intermine.util.SensibleByteArrayOutputStream |
|---|
assureSize, write, write |
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, writeTo |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PostgresByteArrayOutputStream()
ByteArrayOutputStreampublic PostgresByteArrayOutputStream(int size)
size - the initial size of the byte arrayByteArrayOutputStream| Method Detail |
|---|
public byte[] getBuffer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||