public class ByteBufferFileSystemProvider extends BufferFileSystemProvider
ByteBuffer
for Buffers. Access to the file system is not synchronized.fileSystem, scheme| Constructor and Description |
|---|
ByteBufferFileSystemProvider(java.lang.String scheme)
Create a new provider that can create a BufferFileSystem.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.channels.SeekableByteChannel |
newByteChannelImpl(PathImpl path,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs)
Opens or creates a file, returning a seekable byte channel to access the file.
|
getBuffer, getFileSystem, getFileSystem, newFileSystem, newFileSystem, putBuffercheckAccess, checkURI, copy, createDirectory, delete, getFileAttributeView, getFileStore, getPath, getScheme, isHidden, isSameFile, move, newByteChannel, newDirectoryStream, readAttributes, readAttributes, setAttributepublic ByteBufferFileSystemProvider(java.lang.String scheme)
scheme - The scheme for the FileSystemjava.lang.IllegalArgumentException - if scheme is null or emptyprotected java.nio.channels.SeekableByteChannel newByteChannelImpl(PathImpl path, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs) throws java.io.IOException
newByteChannelImpl in class FileSystemProviderImplpath - The path to the file to open or createoptions - Options specifying how the file is openedattrs - An optional list of file attributes to set atomically when
creating the filejava.lang.IllegalArgumentException - if path is not a PathImpljava.nio.file.ClosedFileSystemException - if the FileSystem has been closedjava.nio.file.FileAlreadyExistsException - if a file of that name already exists and the
CREATE_NEW option is specifiedjava.io.IOException - if an I/O error occurs