AzureSeekableByteChannel Class
- java.
lang. Object - com.
azure. storage. blob. nio. AzureSeekableByteChannel
- com.
Implements
public final class AzureSeekableByteChannel
implements SeekableByteChannel
A byte channel that maintains a current position.
A channel may only be opened in read mode OR write mode. It may not be opened in read/write mode. Seeking is supported for reads, but not for writes. Modifications to existing files is not permitted--only creating new files or overwriting existing files.
This type is not threadsafe to prevent having to hold locks across network calls.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void | close() |
| boolean | isOpen() |
| long | position() |
|
Azure |
position(long newPosition) |
| int | read(ByteBuffer dst) |
| long | size() |
|
Azure |
truncate(long size) |
| int | write(ByteBuffer src) |
Methods inherited from java.lang.Object
Method Details
close
isOpen
public boolean isOpen()
position
position
public AzureSeekableByteChannel position(long newPosition)
Parameters:
Throws: