public class GoogleCloudStorageGrpcReadChannel extends Object implements SeekableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected static String |
METADATA_FIELDS |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
position() |
SeekableByteChannel |
position(long newPosition) |
int |
read(ByteBuffer byteBuffer) |
long |
size() |
String |
toString() |
SeekableByteChannel |
truncate(long l) |
int |
write(ByteBuffer byteBuffer) |
protected static final String METADATA_FIELDS
public int read(ByteBuffer byteBuffer) throws IOException
read in interface ReadableByteChannelread in interface SeekableByteChannelIOExceptionpublic int write(ByteBuffer byteBuffer)
write in interface SeekableByteChannelwrite in interface WritableByteChannelpublic long position()
throws IOException
position in interface SeekableByteChannelIOExceptionpublic SeekableByteChannel position(long newPosition) throws IOException
position in interface SeekableByteChannelIOExceptionpublic long size()
throws IOException
size in interface SeekableByteChannelIOExceptionpublic SeekableByteChannel truncate(long l)
truncate in interface SeekableByteChannelpublic void close()
Copyright © 2022. All rights reserved.