0N/A extends AsynchronousSocketChannel
0N/A throws IOException
0N/A throws IOException
0N/A * Marks beginning of access to file descriptor/handle
0N/A throw new ClosedChannelException();
0N/A * Marks end of access to file descriptor/handle
0N/A readKilled = true;
0N/A enableReading(false);
0N/A writeKilled = true;
0N/A enableWriting(false);
0N/A readKilled = true;
0N/A writeKilled = true;
0N/A killReading();
0N/A killWriting();
0N/A A attachment,
0N/A A attachment,
0N/A A attachment,
0N/A throw new NotYetConnectedException();
0N/A if (readKilled)
0N/A throw new ReadPendingException();
0N/A if (readShutdown) {
0N/A if (hasSpaceToRead) {
0N/A if (isScatteringRead) {
0N/A A attachment,
int offset,
int length,
long timeout,
A attachment,
throw new IndexOutOfBoundsException();
long timeout,
A attachment,
long timeout,
A att,
boolean closed = false;
if (isOpen()) {
throw new NotYetConnectedException();
synchronized (writeLock) {
if (writeKilled)
if (writing)
throw new WritePendingException();
if (writeShutdown) {
closed = true;
if (hasDataToWrite)
writing = true;
closed = true;
if (closed) {
return null;
if (!hasDataToWrite) {
return null;
long timeout,
A attachment,
int offset,
int length,
long timeout,
A attachment,
throw new IndexOutOfBoundsException();
throws IOException
begin();
synchronized (stateLock) {
throw new ConnectionPendingException();
throw new AlreadyBoundException();
end();
if (!isOpen())
throw new ClosedChannelException();
throws IOException
throw new NullPointerException();
begin();
if (writeShutdown)
end();
throw new NullPointerException();
begin();
end();
if (!isOpen())
throw new ClosedChannelException();
return remoteAddress;
begin();
throw new NotYetConnectedException();
synchronized (readLock) {
if (!readShutdown) {
readShutdown = true;
end();
begin();
throw new NotYetConnectedException();
synchronized (writeLock) {
if (!writeShutdown) {
writeShutdown = true;
end();
synchronized (stateLock) {
if (!isOpen()) {
switch (state) {
case ST_UNCONNECTED:
case ST_PENDING:
case ST_CONNECTED:
if (readShutdown)
if (writeShutdown)