Class HttpAbstractFileSystemProvider
java.lang.Object
java.nio.file.spi.FileSystemProvider
org.broadinstitute.http.nio.HttpAbstractFileSystemProvider
- Direct Known Subclasses:
HttpFileSystemProvider, HttpsFileSystemProvider
Abstract
FileSystemProvider for HttpFileSystem.
HTTP/S are handled in the same way in jsr203-http, but every protocol requires its own
provider to return its scheme with getScheme().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, HttpFileSystem> private static HttpFileSystemProviderSettings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcheckAccess(Path path, AccessMode... modes) private URIfinal voidcopy(Path source, Path target, CopyOption... options) final voidcreateDirectory(Path dir, FileAttribute<?>... attrs) Unsupported method.final voidUnsupported method.final <V extends FileAttributeView>
VgetFileAttributeView(Path path, Class<V> type, LinkOption... options) final FileStoregetFileStore(Path path) final HttpFileSystemgetFileSystem(URI uri) final HttpPathabstract Stringfinal booleanfinal booleanisSameFile(Path path, Path path2) final voidmove(Path source, Path target, CopyOption... options) Unsupported method.final SeekableByteChannelnewByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) final DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) final HttpFileSystemnewFileSystem(URI uri, Map<String, ?> env) final <A extends BasicFileAttributes>
AreadAttributes(Path path, Class<A> type, LinkOption... options) readAttributes(Path path, String attributes, LinkOption... options) final voidsetAttribute(Path path, String attribute, Object value, LinkOption... options) static voidsetSettings(HttpFileSystemProviderSettings settings) override the existing settingstoString()Methods inherited from class FileSystemProvider
createLink, createSymbolicLink, deleteIfExists, installedProviders, newAsynchronousFileChannel, newFileChannel, newFileSystem, newInputStream, newOutputStream, readSymbolicLink
-
Field Details
-
settings
-
fileSystems
-
-
Constructor Details
-
HttpAbstractFileSystemProvider
HttpAbstractFileSystemProvider()
-
-
Method Details
-
getScheme
- Specified by:
getSchemein classFileSystemProvider
-
checkUri
-
newFileSystem
- Specified by:
newFileSystemin classFileSystemProvider
-
getFileSystem
- Specified by:
getFileSystemin classFileSystemProvider
-
getPath
- Specified by:
getPathin classFileSystemProvider
-
newByteChannel
public final SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannelin classFileSystemProvider- Throws:
IOException
-
newDirectoryStream
public final DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) - Specified by:
newDirectoryStreamin classFileSystemProvider
-
createDirectory
Unsupported method.- Specified by:
createDirectoryin classFileSystemProvider- Throws:
IOException
-
delete
Unsupported method.- Specified by:
deletein classFileSystemProvider- Throws:
IOException
-
copy
- Specified by:
copyin classFileSystemProvider- Throws:
IOException
-
move
Unsupported method.- Specified by:
movein classFileSystemProvider- Throws:
IOException
-
isSameFile
- Specified by:
isSameFilein classFileSystemProvider
-
isHidden
- Specified by:
isHiddenin classFileSystemProvider
-
getFileStore
- Specified by:
getFileStorein classFileSystemProvider
-
checkAccess
- Specified by:
checkAccessin classFileSystemProvider- Throws:
IOException
-
getFileAttributeView
public final <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeViewin classFileSystemProvider
-
readAttributes
public final <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException - Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException
-
readAttributes
public final Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException - Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException
-
setAttribute
public final void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException - Specified by:
setAttributein classFileSystemProvider- Throws:
IOException
-
toString
-
getSettings
- Returns:
- the current settings
-
setSettings
override the existing settings- Parameters:
settings- the new settings object to use
-