GeezerVison is showing docs.oracle.com — SeekableByteChannel (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.nio.channels
Interface SeekableByteChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods
| Modifier and Type |
Method |
Description |
long |
position() |
Returns this channel's position.
|
SeekableByteChannel |
position(long newPosition) |
Sets this channel's position.
|
int |
read(ByteBuffer dst) |
Reads a sequence of bytes from this channel into the given buffer.
|
long |
size() |
Returns the current size of entity to which this channel is connected.
|
SeekableByteChannel |
truncate(long size) |
Truncates the entity, to which this channel is connected, to the given
size.
|
int |
write(ByteBuffer src) |
Writes a sequence of bytes to this channel from the given buffer.
|
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|