public abstract static class NioFileWrapper.Abstract<U> extends AFile.Wrapper.Abstract<U> implements NioFileWrapper
NioFileWrapper.Abstract<U>AFile.Default, AFile.Observer, AFile.WrapperAItem.Base| Modifier | Constructor and Description |
|---|---|
protected |
Abstract(AFile actual,
U user,
Path path,
FileChannel fileChannel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkChannelOpen() |
boolean |
closeChannel() |
FileChannel |
ensureOpenChannel() |
FileChannel |
ensureOpenChannel(OpenOption... options) |
protected void |
ensurePositionAtFileEnd() |
FileChannel |
fileChannel() |
protected void |
internalSetFileChannel(FileChannel fileChannel) |
boolean |
isChannelOpen() |
boolean |
isRetired() |
protected OpenOption[] |
normalizeOpenOptions(OpenOption... options) |
boolean |
openChannel() |
boolean |
openChannel(OpenOption... options) |
Path |
path() |
boolean |
reopenChannel(OpenOption... options) |
boolean |
retire() |
void |
validateIsNotRetired() |
protected abstract void |
validateOpenOptions(OpenOption... options) |
actual, exists, fileSystem, identifier, iterateObservers, mutex, name, parent, registerObserver, removeObserver, type, usertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactualactual, defaultUser, ensureExists, exists, isEmpty, isUsed, iterateObservers, name, New, registerObserver, removeObserver, size, toPath, toPathString, tryUseReading, tryUseReading, tryUseWriting, tryUseWriting, type, useReading, useReading, useWriting, useWritinguseractual, assembleDebugString, buildItemPath, defaultSeparator, fileSystem, identifier, parentprotected Abstract(AFile actual, U user, Path path, FileChannel fileChannel)
public Path path()
path in interface NioItemWrapperpublic FileChannel fileChannel()
fileChannel in interface NioFileWrapperpublic boolean retire()
retire in interface NioFileWrapperpublic boolean isRetired()
isRetired in interface NioFileWrapperpublic void validateIsNotRetired()
public boolean closeChannel()
throws one.microstream.exceptions.IORuntimeException
closeChannel in interface NioFileWrapperone.microstream.exceptions.IORuntimeExceptionpublic boolean isChannelOpen()
isChannelOpen in interface NioFileWrapperpublic boolean checkChannelOpen()
checkChannelOpen in interface NioFileWrapperpublic FileChannel ensureOpenChannel()
ensureOpenChannel in interface NioFileWrapperprotected OpenOption[] normalizeOpenOptions(OpenOption... options)
protected abstract void validateOpenOptions(OpenOption... options)
public FileChannel ensureOpenChannel(OpenOption... options)
ensureOpenChannel in interface NioFileWrapperpublic boolean openChannel()
throws one.microstream.exceptions.IORuntimeException
openChannel in interface NioFileWrapperone.microstream.exceptions.IORuntimeExceptionpublic boolean openChannel(OpenOption... options) throws one.microstream.exceptions.IORuntimeException
openChannel in interface NioFileWrapperone.microstream.exceptions.IORuntimeExceptionprotected void internalSetFileChannel(FileChannel fileChannel)
protected void ensurePositionAtFileEnd()
throws one.microstream.exceptions.IORuntimeException
one.microstream.exceptions.IORuntimeExceptionpublic boolean reopenChannel(OpenOption... options) throws one.microstream.exceptions.IORuntimeException
reopenChannel in interface NioFileWrapperone.microstream.exceptions.IORuntimeExceptionCopyright © 2022 MicroStream Software. All rights reserved.