|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.io.bio.StreamEndPoint
public class StreamEndPoint
To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
| Constructor Summary | |
|---|---|
StreamEndPoint(java.io.InputStream in,
java.io.OutputStream out)
|
|
| Method Summary | |
|---|---|
boolean |
blockReadable(long millisecs)
|
boolean |
blockWritable(long millisecs)
|
void |
close()
Close any backing stream associated with the endpoint |
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. |
void |
flush()
Flush any buffered output. |
int |
flush(Buffer buffer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
int |
flush(Buffer header,
Buffer buffer,
Buffer trailer)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. |
java.io.InputStream |
getInputStream()
|
java.lang.String |
getLocalAddr()
|
java.lang.String |
getLocalHost()
|
int |
getLocalPort()
|
int |
getMaxIdleTime()
Get the max idle time in ms. |
java.io.OutputStream |
getOutputStream()
|
java.lang.String |
getRemoteAddr()
|
java.lang.String |
getRemoteHost()
|
int |
getRemotePort()
|
java.lang.Object |
getTransport()
|
boolean |
isBlocking()
|
boolean |
isBufferingInput()
|
boolean |
isBufferingOutput()
|
boolean |
isBufferred()
|
boolean |
isClosed()
|
boolean |
isOpen()
|
void |
setInputStream(java.io.InputStream in)
|
void |
setMaxIdleTime(int timeMs)
Set the max idle time. |
void |
setOutputStream(java.io.OutputStream out)
|
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamEndPoint(java.io.InputStream in,
java.io.OutputStream out)
| Method Detail |
|---|
public boolean isBlocking()
isBlocking in interface EndPoint
public boolean blockReadable(long millisecs)
throws java.io.IOException
blockReadable in interface EndPointjava.io.IOException
public boolean blockWritable(long millisecs)
throws java.io.IOException
blockWritable in interface EndPointjava.io.IOExceptionpublic boolean isOpen()
isOpen in interface EndPointpublic final boolean isClosed()
public void shutdownOutput()
throws java.io.IOException
EndPoint
shutdownOutput in interface EndPointjava.io.IOException
public void close()
throws java.io.IOException
EndPoint
close in interface EndPointjava.io.IOException
public int fill(Buffer buffer)
throws java.io.IOException
EndPoint
fill in interface EndPointint value indicating the number of bytes
filled or -1 if EOF is reached.
java.io.IOException
public int flush(Buffer buffer)
throws java.io.IOException
EndPoint
flush in interface EndPointbuffer - The buffer to flush. This buffers getIndex is updated.
java.io.IOException
public int flush(Buffer header,
Buffer buffer,
Buffer trailer)
throws java.io.IOException
EndPoint
flush in interface EndPointheader - A buffer to write before flushing this buffer. This buffers getIndex is updated.buffer - The buffer to flush. This buffers getIndex is updated.trailer - A buffer to write after flushing this buffer. This buffers getIndex is updated.
java.io.IOExceptionpublic java.lang.String getLocalAddr()
getLocalAddr in interface EndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public java.lang.String getLocalHost()
getLocalHost in interface EndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public int getLocalPort()
getLocalPort in interface EndPointEndPoint is listening, or 0
if this EndPoint does not represent a network connection.public java.lang.String getRemoteAddr()
getRemoteAddr in interface EndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public java.lang.String getRemoteHost()
getRemoteHost in interface EndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public int getRemotePort()
getRemotePort in interface EndPointEndPoint is connected, or 0
if this EndPoint does not represent a network connection.public java.lang.Object getTransport()
getTransport in interface EndPointpublic java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream in)
public java.io.OutputStream getOutputStream()
public void setOutputStream(java.io.OutputStream out)
public void flush()
throws java.io.IOException
EndPoint
flush in interface EndPointjava.io.IOExceptionpublic boolean isBufferingInput()
isBufferingInput in interface EndPointpublic boolean isBufferingOutput()
isBufferingOutput in interface EndPointpublic boolean isBufferred()
isBufferred in interface EndPointpublic int getMaxIdleTime()
EndPointThe max idle time is the time the endpoint can be idle before
extraordinary handling takes place. This loosely corresponds to
the Socket.getSoTimeout() for blocking connections,
but AsyncEndPoint implementations must use other mechanisms
to implement the max idle time.
getMaxIdleTime in interface EndPoint
public void setMaxIdleTime(int timeMs)
throws java.io.IOException
EndPoint
setMaxIdleTime in interface EndPointtimeMs - the max idle time in MS.
java.io.IOException - if the timeout cannot be set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||