|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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.WritableByteChanneljava.io.IOExceptionpublic 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 RecordWriteChanneljava.io.IOExceptionFileWriteChannel.write(ByteBuffer, String)
public void closeFinally()
throws java.lang.IllegalStateException,
java.io.IOException
closeFinally in interface RecordWriteChanneljava.lang.IllegalStateException
java.io.IOExceptionFileWriteChannel.closeFinally()
public void close()
throws java.io.IOException
RecordWriteChannel.
close in interface java.io.Closeableclose in interface java.nio.channels.Channeljava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||