|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.intermine.sql.writebatch.PostgresDataOutputStream
public class PostgresDataOutputStream
A subclass of DataOutputStream that has extra methods useful for reducing the memory footprint of the Postgres database write operations.
| Field Summary |
|---|
| Fields inherited from class java.io.DataOutputStream |
|---|
written |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
PostgresDataOutputStream(java.io.OutputStream out)
|
|
| Method Summary | |
|---|---|
protected int |
writeLargeUTF(java.util.Collection<java.lang.String> strs)
Writes the given Collection of Strings to the stream in modified UTF-8 format, following its length in bytes as a four-byte integer. |
int |
writeLargeUTF(java.lang.String str)
Writes the given String to the stream in modified UTF-8 format, following its length in bytes as a four-byte integer. |
int |
writeLargeUTF(StringConstructor str)
Writes the given StringConstructor to the stream in modified UTF-8 format, following its length in bytes as a four-byte integer. |
| Methods inherited from class java.io.DataOutputStream |
|---|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
|---|
close, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.DataOutput |
|---|
write |
| Constructor Detail |
|---|
public PostgresDataOutputStream(java.io.OutputStream out)
out - the OutputStream to write toDataOutputStream| Method Detail |
|---|
public int writeLargeUTF(java.lang.String str)
throws java.io.IOException
str - the String
java.io.IOException - if there is an error writing to the underlying OutputStream
public int writeLargeUTF(StringConstructor str)
throws java.io.IOException
str - the StringConstructor
java.io.IOException - if there is an error writing to the underlying OutputStream
protected int writeLargeUTF(java.util.Collection<java.lang.String> strs)
throws java.io.IOException
strs - the Collection of Strings
java.io.IOException - if there is an error writing to the underlying OutputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||