|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.io.ByteArrayEndPoint
public class ByteArrayEndPoint
ByteArrayEndPoint.
| 字段摘要 | |
|---|---|
protected boolean |
_closed
|
protected Connection |
_connection
|
protected boolean |
_growOutput
|
protected ByteArrayBuffer |
_in
|
protected byte[] |
_inBytes
|
protected int |
_maxIdleTime
|
protected boolean |
_nonBlocking
|
protected ByteArrayBuffer |
_out
|
| 构造方法摘要 | |
|---|---|
ByteArrayEndPoint()
|
|
ByteArrayEndPoint(byte[] input,
int outputSize)
|
|
| 方法摘要 | |
|---|---|
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. |
Connection |
getConnection()
|
ByteArrayBuffer |
getIn()
|
String |
getLocalAddr()
|
String |
getLocalHost()
|
int |
getLocalPort()
|
int |
getMaxIdleTime()
Get the max idle time in ms. |
ByteArrayBuffer |
getOut()
|
String |
getRemoteAddr()
|
String |
getRemoteHost()
|
int |
getRemotePort()
|
Object |
getTransport()
|
boolean |
isBlocking()
|
boolean |
isGrowOutput()
|
boolean |
isInputShutdown()
|
boolean |
isNonBlocking()
|
boolean |
isOpen()
|
boolean |
isOutputShutdown()
|
void |
reset()
|
void |
setConnection(Connection connection)
|
void |
setGrowOutput(boolean growOutput)
|
void |
setIn(ByteArrayBuffer in)
|
void |
setMaxIdleTime(int timeMs)
Set the max idle time. |
void |
setNonBlocking(boolean nonBlocking)
|
void |
setOut(ByteArrayBuffer out)
|
void |
shutdownInput()
Shutdown any backing input stream associated with the endpoint |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected byte[] _inBytes
protected ByteArrayBuffer _in
protected ByteArrayBuffer _out
protected boolean _closed
protected boolean _nonBlocking
protected boolean _growOutput
protected Connection _connection
protected int _maxIdleTime
| 构造方法详细信息 |
|---|
public ByteArrayEndPoint()
public ByteArrayEndPoint(byte[] input,
int outputSize)
| 方法详细信息 |
|---|
public Connection getConnection()
ConnectedEndPoint 中的 getConnectionConnectedEndPoint.getConnection()public void setConnection(Connection connection)
ConnectedEndPoint 中的 setConnectionConnectedEndPoint.setConnection(org.eclipse.jetty.io.Connection)public boolean isNonBlocking()
public void setNonBlocking(boolean nonBlocking)
nonBlocking - the nonBlocking to setpublic ByteArrayBuffer getIn()
public void setIn(ByteArrayBuffer in)
in - The in to set.public ByteArrayBuffer getOut()
public void setOut(ByteArrayBuffer out)
out - The out to set.public boolean isOpen()
EndPoint 中的 isOpenpublic boolean isInputShutdown()
EndPoint 中的 isInputShutdownpublic boolean isOutputShutdown()
EndPoint 中的 isOutputShutdownpublic boolean isBlocking()
EndPoint 中的 isBlockingpublic boolean blockReadable(long millisecs)
EndPoint 中的 blockReadablepublic boolean blockWritable(long millisecs)
EndPoint 中的 blockWritable
public void shutdownOutput()
throws IOException
EndPoint 复制的描述
EndPoint 中的 shutdownOutputIOException
public void shutdownInput()
throws IOException
EndPoint 复制的描述
EndPoint 中的 shutdownInputIOException
public void close()
throws IOException
EndPoint 复制的描述
EndPoint 中的 closeIOException
public int fill(Buffer buffer)
throws IOException
EndPoint 复制的描述
EndPoint 中的 fillint value indicating the number of bytes
filled or -1 if EOF is reached.
EofException - If input is shutdown or the endpoint is closed.
IOException
public int flush(Buffer buffer)
throws IOException
EndPoint 复制的描述
EndPoint 中的 flushbuffer - The buffer to flush. This buffers getIndex is updated.
EofException - If the endpoint is closed or output is shutdown.
IOException
public int flush(Buffer header,
Buffer buffer,
Buffer trailer)
throws IOException
EndPoint 复制的描述
EndPoint 中的 flushheader - 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.
IOExceptionpublic void reset()
public String getLocalAddr()
EndPoint 中的 getLocalAddrEndPoint is bound, or null
if this EndPoint does not represent a network connection.public String getLocalHost()
EndPoint 中的 getLocalHostEndPoint is bound, or null
if this EndPoint does not represent a network connection.public int getLocalPort()
EndPoint 中的 getLocalPortEndPoint is listening, or 0
if this EndPoint does not represent a network connection.public String getRemoteAddr()
EndPoint 中的 getRemoteAddrEndPoint is connected, or null
if this EndPoint does not represent a network connection.public String getRemoteHost()
EndPoint 中的 getRemoteHostEndPoint is connected, or null
if this EndPoint does not represent a network connection.public int getRemotePort()
EndPoint 中的 getRemotePortEndPoint is connected, or 0
if this EndPoint does not represent a network connection.public Object getTransport()
EndPoint 中的 getTransport
public void flush()
throws IOException
EndPoint 复制的描述
EndPoint 中的 flushEofException - If the endpoint is closed or output is shutdown.
IOExceptionpublic boolean isGrowOutput()
public void setGrowOutput(boolean growOutput)
growOutput - the growOutput to setpublic int getMaxIdleTime()
EndPoint 复制的描述The 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.
EndPoint 中的 getMaxIdleTimeEndPoint.getMaxIdleTime()
public void setMaxIdleTime(int timeMs)
throws IOException
EndPoint 复制的描述
EndPoint 中的 setMaxIdleTimetimeMs - the max idle time in MS. Timeout <= 0 implies an infinite timeout
IOException - if the timeout cannot be set.EndPoint.setMaxIdleTime(int)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||