public static class FilePathEncrypt.FileEncrypt extends FileBase
FileChannel.MapMode
Constructor and Description |
---|
FileEncrypt(String name,
byte[] encryptionKey,
FileChannel base) |
Modifier and Type | Method and Description |
---|---|
void |
force(boolean metaData) |
protected void |
implCloseChannel() |
long |
position() |
FileChannel |
position(long newPosition) |
int |
read(ByteBuffer dst) |
int |
read(ByteBuffer dst,
long position) |
long |
size() |
String |
toString() |
FileChannel |
truncate(long newSize) |
FileLock |
tryLock(long position,
long size,
boolean shared) |
int |
write(ByteBuffer src) |
int |
write(ByteBuffer src,
long position) |
lock, map, read, transferFrom, transferTo, write
begin, close, end, isOpen
public FileEncrypt(String name, byte[] encryptionKey, FileChannel base)
protected void implCloseChannel() throws IOException
implCloseChannel
in class FileBase
IOException
public FileChannel position(long newPosition) throws IOException
position
in interface SeekableByteChannel
position
in class FileBase
IOException
public long position() throws IOException
position
in interface SeekableByteChannel
position
in class FileBase
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
read
in interface SeekableByteChannel
read
in class FileBase
IOException
public int read(ByteBuffer dst, long position) throws IOException
read
in class FileBase
IOException
public int write(ByteBuffer src, long position) throws IOException
write
in class FileBase
IOException
public int write(ByteBuffer src) throws IOException
write
in interface SeekableByteChannel
write
in interface WritableByteChannel
write
in class FileBase
IOException
public long size() throws IOException
size
in interface SeekableByteChannel
size
in class FileBase
IOException
public FileChannel truncate(long newSize) throws IOException
truncate
in interface SeekableByteChannel
truncate
in class FileBase
IOException
public void force(boolean metaData) throws IOException
force
in class FileBase
IOException
public FileLock tryLock(long position, long size, boolean shared) throws IOException
tryLock
in class FileBase
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.