play.server
类 FileChannelBuffer
java.lang.Object
org.jboss.netty.buffer.AbstractChannelBuffer
play.server.FileChannelBuffer
- 所有已实现的接口:
- java.lang.Comparable<org.jboss.netty.buffer.ChannelBuffer>, org.jboss.netty.buffer.ChannelBuffer, org.jboss.netty.buffer.WrappedChannelBuffer
public class FileChannelBuffer
- extends org.jboss.netty.buffer.AbstractChannelBuffer
- implements org.jboss.netty.buffer.WrappedChannelBuffer
Useless channel buffer only used to wrap the input stream....
方法摘要 |
byte[] |
array()
|
int |
arrayOffset()
|
int |
capacity()
|
org.jboss.netty.buffer.ChannelBuffer |
copy(int index,
int length)
|
void |
discardReadBytes()
|
org.jboss.netty.buffer.ChannelBuffer |
duplicate()
|
org.jboss.netty.buffer.ChannelBufferFactory |
factory()
|
byte |
getByte(int index)
|
void |
getBytes(int index,
byte[] dst,
int dstIndex,
int length)
|
void |
getBytes(int index,
java.nio.ByteBuffer dst)
|
void |
getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
|
int |
getBytes(int index,
java.nio.channels.GatheringByteChannel out,
int length)
|
void |
getBytes(int index,
java.io.OutputStream out,
int length)
|
java.io.InputStream |
getInputStream()
|
int |
getInt(int index)
|
long |
getLong(int index)
|
short |
getShort(int index)
|
int |
getUnsignedMedium(int index)
|
boolean |
hasArray()
|
boolean |
isDirect()
|
java.nio.ByteOrder |
order()
|
void |
readBytes(byte[] dst)
|
void |
readBytes(byte[] dst,
int dstIndex,
int length)
|
void |
readBytes(java.nio.ByteBuffer dst)
|
void |
readBytes(org.jboss.netty.buffer.ChannelBuffer dst)
|
void |
readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int length)
|
void |
readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
|
int |
readBytes(java.nio.channels.GatheringByteChannel out,
int length)
|
org.jboss.netty.buffer.ChannelBuffer |
readBytes(int length)
|
void |
readBytes(java.io.OutputStream out,
int length)
|
int |
readerIndex()
|
org.jboss.netty.buffer.ChannelBuffer |
readSlice(int length)
|
void |
setByte(int index,
byte value)
|
void |
setByte(int i,
int i1)
|
void |
setBytes(int index,
byte[] src,
int srcIndex,
int length)
|
void |
setBytes(int index,
java.nio.ByteBuffer src)
|
void |
setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src,
int srcIndex,
int length)
|
int |
setBytes(int index,
java.io.InputStream in,
int length)
|
int |
setBytes(int index,
java.nio.channels.ScatteringByteChannel in,
int length)
|
void |
setInt(int index,
int value)
|
void |
setLong(int index,
long value)
|
void |
setMedium(int index,
int value)
|
void |
setShort(int a,
int b)
|
void |
setShort(int index,
short value)
|
org.jboss.netty.buffer.ChannelBuffer |
slice(int index,
int length)
|
java.nio.ByteBuffer |
toByteBuffer(int index,
int length)
|
java.nio.ByteBuffer[] |
toByteBuffers(int index,
int length)
|
org.jboss.netty.buffer.ChannelBuffer |
unwrap()
|
从类 org.jboss.netty.buffer.AbstractChannelBuffer 继承的方法 |
bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, checkReadableBytes, clear, compareTo, copy, ensureWritableBytes, equals, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getMedium, getUnsignedByte, getUnsignedInt, getUnsignedShort, hashCode, indexOf, indexOf, markReaderIndex, markWriterIndex, readable, readableBytes, readByte, readBytes, readChar, readDouble, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setZero, skipBytes, skipBytes, slice, toByteBuffer, toByteBuffers, toString, toString, toString, toString, toString, toString, toString, writable, writableBytes, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero |
从类 java.lang.Object 继承的方法 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
从接口 org.jboss.netty.buffer.ChannelBuffer 继承的方法 |
bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, clear, compareTo, copy, ensureWritableBytes, equals, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getMedium, getUnsignedByte, getUnsignedInt, getUnsignedShort, hashCode, indexOf, indexOf, markReaderIndex, markWriterIndex, readable, readableBytes, readByte, readBytes, readChar, readDouble, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setZero, skipBytes, skipBytes, slice, toByteBuffer, toByteBuffers, toString, toString, toString, toString, toString, toString, toString, writable, writableBytes, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero |
FileChannelBuffer
public FileChannelBuffer(java.io.File file)
getInputStream
public java.io.InputStream getInputStream()
unwrap
public org.jboss.netty.buffer.ChannelBuffer unwrap()
- 指定者:
- 接口
org.jboss.netty.buffer.WrappedChannelBuffer
中的 unwrap
factory
public org.jboss.netty.buffer.ChannelBufferFactory factory()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 factory
order
public java.nio.ByteOrder order()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 order
isDirect
public boolean isDirect()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 isDirect
hasArray
public boolean hasArray()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 hasArray
array
public byte[] array()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 array
arrayOffset
public int arrayOffset()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 arrayOffset
discardReadBytes
public void discardReadBytes()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 discardReadBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 discardReadBytes
setByte
public void setByte(int index,
byte value)
setBytes
public void setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src,
int srcIndex,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setBytes
setBytes
public void setBytes(int index,
byte[] src,
int srcIndex,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setBytes
setBytes
public void setBytes(int index,
java.nio.ByteBuffer src)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setBytes
setShort
public void setShort(int index,
short value)
setMedium
public void setMedium(int index,
int value)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setMedium
setInt
public void setInt(int index,
int value)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setInt
setLong
public void setLong(int index,
long value)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setLong
setBytes
public int setBytes(int index,
java.io.InputStream in,
int length)
throws java.io.IOException
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setBytes
- 抛出:
java.io.IOException
setBytes
public int setBytes(int index,
java.nio.channels.ScatteringByteChannel in,
int length)
throws java.io.IOException
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setBytes
- 抛出:
java.io.IOException
readerIndex
public int readerIndex()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readerIndex
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readerIndex
getBytes
public int getBytes(int index,
java.nio.channels.GatheringByteChannel out,
int length)
throws java.io.IOException
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getBytes
- 抛出:
java.io.IOException
setByte
public void setByte(int i,
int i1)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setByte
getBytes
public void getBytes(int index,
java.io.OutputStream out,
int length)
throws java.io.IOException
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getBytes
- 抛出:
java.io.IOException
getBytes
public void getBytes(int index,
byte[] dst,
int dstIndex,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getBytes
getBytes
public void getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getBytes
getBytes
public void getBytes(int index,
java.nio.ByteBuffer dst)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getBytes
duplicate
public org.jboss.netty.buffer.ChannelBuffer duplicate()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 duplicate
copy
public org.jboss.netty.buffer.ChannelBuffer copy(int index,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 copy
slice
public org.jboss.netty.buffer.ChannelBuffer slice(int index,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 slice
getByte
public byte getByte(int index)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getByte
getShort
public short getShort(int index)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getShort
getUnsignedMedium
public int getUnsignedMedium(int index)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getUnsignedMedium
getInt
public int getInt(int index)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getInt
getLong
public long getLong(int index)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 getLong
toByteBuffer
public java.nio.ByteBuffer toByteBuffer(int index,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 toByteBuffer
toByteBuffers
public java.nio.ByteBuffer[] toByteBuffers(int index,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 toByteBuffers
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 toByteBuffers
capacity
public int capacity()
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 capacity
readBytes
public org.jboss.netty.buffer.ChannelBuffer readBytes(int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readSlice
public org.jboss.netty.buffer.ChannelBuffer readSlice(int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readSlice
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readSlice
readBytes
public void readBytes(byte[] dst,
int dstIndex,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readBytes
public void readBytes(byte[] dst)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readBytes
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readBytes
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readBytes
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readBytes
public void readBytes(java.nio.ByteBuffer dst)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
readBytes
public int readBytes(java.nio.channels.GatheringByteChannel out,
int length)
throws java.io.IOException
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
- 抛出:
java.io.IOException
readBytes
public void readBytes(java.io.OutputStream out,
int length)
throws java.io.IOException
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 readBytes
- 覆盖:
- 类
org.jboss.netty.buffer.AbstractChannelBuffer
中的 readBytes
- 抛出:
java.io.IOException
setShort
public void setShort(int a,
int b)
- 指定者:
- 接口
org.jboss.netty.buffer.ChannelBuffer
中的 setShort
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly