|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.files.RecordWriteChannelImpl
public final class RecordWriteChannelImpl
An implementation of a RecordWriteChannel
.
Constructor Summary | |
---|---|
RecordWriteChannelImpl(FileWriteChannel output)
|
Method Summary | |
---|---|
void |
close()
Closes and finalizes the RecordWriteChannel . |
void |
closeFinally()
Closes the file. |
boolean |
isOpen()
|
int |
write(java.nio.ByteBuffer data)
|
int |
write(java.nio.ByteBuffer data,
java.lang.String sequenceKey)
Writes the data out to FileWriteChannel. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordWriteChannelImpl(FileWriteChannel output)
output
- a FileWriteChannel
to write the record to.Method Detail |
---|
public int write(java.nio.ByteBuffer data) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public int write(java.nio.ByteBuffer data, java.lang.String sequenceKey) throws java.io.IOException
write
in interface RecordWriteChannel
java.io.IOException
FileWriteChannel.write(ByteBuffer, String)
public void closeFinally() throws java.lang.IllegalStateException, java.io.IOException
closeFinally
in interface RecordWriteChannel
java.lang.IllegalStateException
java.io.IOException
FileWriteChannel.closeFinally()
public void close() throws java.io.IOException
RecordWriteChannel
.
close
in interface java.io.Closeable
close
in interface java.nio.channels.Channel
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |