| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Collection | |
| private final SeekableByteChannel | |
| private final List | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | FileHandle(SftpSubsystem subsystem, Path file, String handle, int flags, int access, Map<String, Object> attrs)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private boolean | |
| private boolean | |
| public void | close()
Overrides org. Implements java. Closes this channel. |
| public int | |
| public final Collection | |
| public SeekableByteChannel | |
| public final Set | |
| public static Set | |
| public boolean | |
| public void | |
| public int | |
| public int | |
| public int | |
| public static FileAttribute | |
| public static Collection | |
| public void | |
| public void | |
| public void |
| access | back to summary |
|---|---|
| private final int access | |
| fileAttributes | back to summary |
|---|---|
| private final Collection<FileAttribute<?>> fileAttributes | |
| fileChannel | back to summary |
|---|---|
| private final SeekableByteChannel fileChannel | |
| locks | back to summary |
|---|---|
| private final List<FileLock> locks | |
| openOptions | back to summary |
|---|---|
| private final Set<StandardOpenOption> openOptions | |
| FileHandle | back to summary |
|---|---|
| public FileHandle(SftpSubsystem subsystem, Path file, String handle, int flags, int access, Map<String, Object> attrs) throws IOException | |
| append | back to summary |
|---|---|
| public void append(byte[] data) throws IOException | |
| append | back to summary |
|---|---|
| public void append(byte[] data, int doff, int length) throws IOException | |
| canRead | back to summary |
|---|---|
| private boolean canRead() | |
| canWrite | back to summary |
|---|---|
| private boolean canWrite() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| getAccessMask | back to summary |
|---|---|
| public int getAccessMask() | |
| getFileAttributes | back to summary |
|---|---|
| public final Collection | |
| getFileChannel | back to summary |
|---|---|
| public SeekableByteChannel getFileChannel() | |
| getOpenOptions | back to summary |
|---|---|
| public final Set | |
| getOpenOptions | back to summary |
|---|---|
| public static Set | |
| isOpenAppend | back to summary |
|---|---|
| public boolean isOpenAppend() | |
| lock | back to summary |
|---|---|
| public void lock(long offset, long length, int mask) throws IOException | |
| read | back to summary |
|---|---|
| public int read(byte[] data, long offset) throws IOException | |
| read | back to summary |
|---|---|
| public int read(byte[] data, int doff, int length, long offset) throws IOException | |
| read | back to summary |
|---|---|
public int read(byte[] data, int doff, int length, long offset, AtomicReference<Boolean> eof) throws IOException
| |
| toFileAttribute | back to summary |
|---|---|
| public static FileAttribute | |
| toFileAttributes | back to summary |
|---|---|
| public static Collection | |
| unlock | back to summary |
|---|---|
| public void unlock(long offset, long length) throws IOException | |
| write | back to summary |
|---|---|
| public void write(byte[] data, long offset) throws IOException | |
| write | back to summary |
|---|---|
| public void write(byte[] data, int doff, int length, long offset) throws IOException | |