public final class PostgresReader extends Object implements PostgresBuffer, AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static interface |
PostgresReader.ConvertToValue<T> |
| Modifier and Type | Field and Description |
|---|---|
char[] |
tmp |
| Constructor and Description |
|---|
PostgresReader() |
PostgresReader(ServiceLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToBuffer(char c) |
void |
addToBuffer(char[] buf) |
void |
addToBuffer(char[] buf,
int len) |
void |
addToBuffer(char[] buf,
int offset,
int end) |
void |
addToBuffer(String input) |
int |
bufferHash() |
boolean |
bufferMatches(String compare) |
String |
bufferToString() |
<T> T |
bufferToValue(PostgresReader.ConvertToValue<T> converter) |
void |
close() |
static PostgresReader |
create(ServiceLocator locator) |
void |
fillTotal(char[] target,
int offset,
int count) |
int |
fillUntil(char[] target,
int offset,
char c1,
char c2) |
void |
fillUntil(char c1,
char c2) |
Optional<ServiceLocator> |
getLocator() |
char[] |
getTempBuffer() |
void |
initBuffer() |
void |
initBuffer(char c) |
int |
last() |
static void |
parseCompositeURI(String uri,
String[] result) |
int |
peek() |
void |
process(String input) |
int |
read() |
int |
read(int total) |
public PostgresReader()
public PostgresReader(ServiceLocator locator)
public Optional<ServiceLocator> getLocator()
public static PostgresReader create(ServiceLocator locator)
public void close()
close in interface AutoCloseablepublic void process(String input)
public int read()
public int read(int total)
public int peek()
public int last()
public char[] getTempBuffer()
getTempBuffer in interface PostgresBufferpublic void initBuffer()
initBuffer in interface PostgresBufferpublic void initBuffer(char c)
initBuffer in interface PostgresBufferpublic void addToBuffer(char c)
addToBuffer in interface PostgresBufferpublic void addToBuffer(char[] buf)
addToBuffer in interface PostgresBufferpublic void addToBuffer(char[] buf,
int len)
addToBuffer in interface PostgresBufferpublic void addToBuffer(char[] buf,
int offset,
int end)
addToBuffer in interface PostgresBufferpublic void addToBuffer(String input)
addToBuffer in interface PostgresBufferpublic void fillUntil(char c1,
char c2)
throws IOException
IOExceptionpublic int fillUntil(char[] target,
int offset,
char c1,
char c2)
throws IOException
IOExceptionpublic void fillTotal(char[] target,
int offset,
int count)
throws IOException
IOExceptionpublic String bufferToString()
bufferToString in interface PostgresBufferpublic <T> T bufferToValue(PostgresReader.ConvertToValue<T> converter)
public boolean bufferMatches(String compare)
public int bufferHash()
public static void parseCompositeURI(String uri, String[] result) throws IOException
IOExceptionCopyright © 2016. All rights reserved.