public class SeekableInMemoryByteChannel extends Object implements SeekableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
contents |
| Constructor and Description |
|---|
SeekableInMemoryByteChannel() |
SeekableInMemoryByteChannel(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getContent() |
boolean |
isOpen() |
long |
position() |
SeekableByteChannel |
position(long newPosition) |
int |
read(ByteBuffer destination) |
long |
size() |
String |
toString() |
SeekableByteChannel |
truncate(long size) |
int |
write(ByteBuffer source) |
public SeekableInMemoryByteChannel(int capacity)
public SeekableInMemoryByteChannel()
public void close()
public int read(ByteBuffer destination)
read in interface ReadableByteChannelpublic int write(ByteBuffer source)
write in interface WritableByteChannelpublic long position()
position in interface SeekableByteChannelpublic SeekableByteChannel position(long newPosition)
position in interface SeekableByteChannelpublic long size()
size in interface SeekableByteChannelpublic SeekableByteChannel truncate(long size)
truncate in interface SeekableByteChannelpublic InputStream getContent()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.