com.google.appengine.api.files
Class BufferedFileReadChannelImpl
- java.lang.Object
-
- com.google.appengine.api.files.BufferedFileReadChannelImpl
-
- All Implemented Interfaces:
- FileReadChannel, java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel
Deprecated.
@Deprecated public class BufferedFileReadChannelImpl extends java.lang.Object implements FileReadChannel
Wraps a FileReadChannel to provide buffering of reads.
-
-
Constructor Summary
Constructors Constructor and Description BufferedFileReadChannelImpl(FileReadChannel readChannel, int bufferSize)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidclose()Deprecated.booleanisOpen()Deprecated.longposition()Deprecated.Returns this channel's file position;FileReadChannelposition(long newPosition)Deprecated.Sets this channel's file position.intread(java.nio.ByteBuffer dst)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
BufferedFileReadChannelImpl
public BufferedFileReadChannelImpl(FileReadChannel readChannel, int bufferSize)
Deprecated.
-
-
Method Detail
-
read
public int read(java.nio.ByteBuffer dst) throws java.io.IOExceptionDeprecated.- Specified by:
readin interfacejava.nio.channels.ReadableByteChannel- Throws:
java.io.IOException
-
isOpen
public boolean isOpen()
Deprecated.- Specified by:
isOpenin interfacejava.nio.channels.Channel
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.nio.channels.Channel- Throws:
java.io.IOException
-
position
public long position() throws java.io.IOExceptionDeprecated.Description copied from interface:FileReadChannelReturns this channel's file position;- Specified by:
positionin interfaceFileReadChannel- Returns:
- This channel's file position, a non-negative integer counting the number of bytes from the beginning of the file to the current position
- Throws:
java.io.IOException- If any problem occurs
-
position
public FileReadChannel position(long newPosition) throws java.io.IOException
Deprecated.Description copied from interface:FileReadChannelSets this channel's file position.Setting the position to a value that is greater than the file's size will not result in an exception. A later attempt to read bytes at such a position will immediately return an end-of-file indication.
- Specified by:
positionin interfaceFileReadChannel- Parameters:
newPosition- The new position, a non-negative integer counting the number of bytes from the beginning of the file- Returns:
- This channel
- Throws:
java.io.IOException- If any other problem occurs
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-