public interface ReadableChannel
WritableChannel in
data types that can be read.| Modifier and Type | Method and Description |
|---|---|
byte |
get() |
void |
get(byte[] bytes,
int length)
Reads the next
length bytes from this channel and puts them into bytes. |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
short |
getShort() |
byte get() throws IOException, ReadPastEndException
byte in this channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.short getShort()
throws IOException,
ReadPastEndException
short in this channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.int getInt()
throws IOException,
ReadPastEndException
int in this channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.long getLong()
throws IOException,
ReadPastEndException
long in this channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.float getFloat()
throws IOException,
ReadPastEndException
float in this channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.double getDouble()
throws IOException,
ReadPastEndException
double in this channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.void get(byte[] bytes,
int length)
throws IOException,
ReadPastEndException
length bytes from this channel and puts them into bytes.
Will throw ArrayIndexOutOfBoundsException if length exceeds the length of bytes.bytes - byte[] to put read bytes into.length - number of bytes to read from the channel.IOException - I/O error from channel.ReadPastEndException - if not enough data was available.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.