public abstract class OChannelBinary extends OChannel implements OChannelDataInput, OChannelDataOutput
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
DataInputStream |
in |
DataOutputStream |
out |
Constructor and Description |
---|
OChannelBinary(Socket iSocket,
OContextConfiguration iConfig) |
Modifier and Type | Method and Description |
---|---|
void |
clearInput() |
void |
close() |
void |
flush() |
DataInputStream |
getDataInput() |
DataOutputStream |
getDataOutput() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readBytes() |
int |
readInt() |
long |
readLong() |
ORecordId |
readRID() |
short |
readShort() |
String |
readString() |
int |
readVersion() |
void |
setReadRequestTimeout() |
void |
setWaitRequestTimeout() |
void |
setWaitResponseTimeout() |
OChannelBinary |
writeBoolean(boolean iContent) |
OChannelBinary |
writeByte(byte iContent) |
OChannelBinary |
writeBytes(byte[] iContent) |
OChannelBinary |
writeBytes(byte[] iContent,
int iLength) |
OChannelBinary |
writeInt(int iContent) |
OChannelBinary |
writeLong(long iContent) |
void |
writeRID(ORID iRID) |
OChannelBinary |
writeShort(short iContent) |
OChannelBinary |
writeString(String iContent) |
void |
writeVersion(int version) |
acquireReadLock, acquireWriteLock, connected, getLocalIpAddress, getLockWrite, releaseReadLock, releaseWriteLock, toString, tryAcquireWriteLock, updateMetricFlushes, updateMetricReceivedBytes, updateMetricTransmittedBytes
browseListeners, getListenersCopy, registerListener, resetListeners, unregisterListener
protected final boolean debug
public DataInputStream in
public DataOutputStream out
public OChannelBinary(Socket iSocket, OContextConfiguration iConfig) throws IOException
IOException
public byte readByte() throws IOException
readByte
in interface OChannelDataInput
IOException
public boolean readBoolean() throws IOException
readBoolean
in interface OChannelDataInput
IOException
public int readInt() throws IOException
readInt
in interface OChannelDataInput
IOException
public long readLong() throws IOException
readLong
in interface OChannelDataInput
IOException
public short readShort() throws IOException
readShort
in interface OChannelDataInput
IOException
public String readString() throws IOException
readString
in interface OChannelDataInput
IOException
public byte[] readBytes() throws IOException
readBytes
in interface OChannelDataInput
IOException
public ORecordId readRID() throws IOException
readRID
in interface OChannelDataInput
IOException
public int readVersion() throws IOException
readVersion
in interface OChannelDataInput
IOException
public OChannelBinary writeByte(byte iContent) throws IOException
writeByte
in interface OChannelDataOutput
IOException
public OChannelBinary writeBoolean(boolean iContent) throws IOException
writeBoolean
in interface OChannelDataOutput
IOException
public OChannelBinary writeInt(int iContent) throws IOException
writeInt
in interface OChannelDataOutput
IOException
public OChannelBinary writeLong(long iContent) throws IOException
writeLong
in interface OChannelDataOutput
IOException
public OChannelBinary writeShort(short iContent) throws IOException
writeShort
in interface OChannelDataOutput
IOException
public OChannelBinary writeString(String iContent) throws IOException
writeString
in interface OChannelDataOutput
IOException
public OChannelBinary writeBytes(byte[] iContent) throws IOException
writeBytes
in interface OChannelDataOutput
IOException
public OChannelBinary writeBytes(byte[] iContent, int iLength) throws IOException
writeBytes
in interface OChannelDataOutput
IOException
public void writeRID(ORID iRID) throws IOException
writeRID
in interface OChannelDataOutput
IOException
public void writeVersion(int version) throws IOException
writeVersion
in interface OChannelDataOutput
IOException
public void clearInput() throws IOException
IOException
public void flush() throws IOException
flush
in class OChannel
IOException
public DataOutputStream getDataOutput()
getDataOutput
in interface OChannelDataOutput
public DataInputStream getDataInput()
getDataInput
in interface OChannelDataInput
public void setWaitResponseTimeout() throws SocketException
SocketException
public void setWaitRequestTimeout() throws SocketException
SocketException
public void setReadRequestTimeout() throws SocketException
SocketException
Copyright © 2009–2020 OrientDB. All rights reserved.