Top Description Inners Fields Constructors Methods
com.jogamp.gluegen.jcpp

public Class ChrootFileSystem

extends Object
implements VirtualFileSystem
Class Inheritance
All Implemented Interfaces
com.jogamp.gluegen.jcpp.VirtualFileSystem
Imports
java.io.File, .IOException

A virtual filesystem implementation using java.io in a virtual chroot.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private File

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public VirtualFile
public VirtualFile
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rootback to summary
private File root

Constructor Detail

ChrootFileSystemback to summary
public ChrootFileSystem(File root)

Method Detail

getFileback to summary
public VirtualFile getFile(String path)

Implements com.jogamp.gluegen.jcpp.VirtualFileSystem.getFile.

Annotations
@Override
getFileback to summary
public VirtualFile getFile(String dir, String name)

Implements com.jogamp.gluegen.jcpp.VirtualFileSystem.getFile.

Annotations
@Override
com.jogamp.gluegen.jcpp back to summary

private Class ChrootFileSystem.ChrootFile

extends File
implements VirtualFile
Class Inheritance
All Implemented Interfaces
com.jogamp.gluegen.jcpp.VirtualFile

Field Summary

Modifier and TypeField and Description
private File
Inherited from java.io.File:
pathSeparatorpathSeparatorCharseparatorseparatorChar

Constructor Summary

AccessConstructor and Description
public
public
public
ChrootFile(File dir, String name)

Method Summary

Modifier and TypeMethod and Description
public ChrootFileSystem.ChrootFile
public ChrootFileSystem.ChrootFile
getParentFile()

Overrides java.io.File.getParentFile.

Implements com.jogamp.gluegen.jcpp.VirtualFile.getParentFile.

Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.
public Source
public boolean
isFile()

Overrides java.io.File.isFile.

Implements com.jogamp.gluegen.jcpp.VirtualFile.isFile.

Tests whether the file denoted by this abstract pathname is a normal file.
Inherited from java.io.File:
canExecutecanReadcanWritecompareTocreateNewFilecreateTempFilecreateTempFiledeletedeleteOnExitequalsexistsgetAbsoluteFilegetAbsolutePathgetCanonicalFilegetCanonicalPathgetFreeSpacegetNamegetParentgetPathgetTotalSpacegetUsableSpacehashCodeisAbsoluteisDirectoryisHiddenlastModifiedlengthlistlistlistFileslistFileslistFileslistRootsmkdirmkdirsrenameTosetExecutablesetExecutablesetLastModifiedsetReadablesetReadablesetReadOnlysetWritablesetWritabletoPathtoStringtoURItoURL

Field Detail

rfileback to summary
private File rfile

Constructor Detail

ChrootFileback to summary
public ChrootFile(String path)
ChrootFileback to summary
public ChrootFile(String dir, String name)
ChrootFileback to summary
public ChrootFile(File dir, String name)

Method Detail

getChildFileback to summary
public ChrootFileSystem.ChrootFile getChildFile(String name)

Implements com.jogamp.gluegen.jcpp.VirtualFile.getChildFile.

Annotations
@Override
getParentFileback to summary
public ChrootFileSystem.ChrootFile getParentFile()

Overrides java.io.File.getParentFile.

Implements com.jogamp.gluegen.jcpp.VirtualFile.getParentFile.

Doc from java.io.File.getParentFile.

Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.

The parent of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory.

Returns:ChrootFileSystem.ChrootFile

The abstract pathname of the parent directory named by this abstract pathname, or null if this pathname does not name a parent

Annotations
@Override
getSourceback to summary
public Source getSource() throws IOException

Implements com.jogamp.gluegen.jcpp.VirtualFile.getSource.

Annotations
@Override
isFileback to summary
public boolean isFile()

Overrides java.io.File.isFile.

Implements com.jogamp.gluegen.jcpp.VirtualFile.isFile.

Doc from java.io.File.isFile.

Tests whether the file denoted by this abstract pathname is a normal file. A file is normal if it is not a directory and, in addition, satisfies other system-dependent criteria. Any non-directory file created by a Java application is guaranteed to be a normal file.

Where it is required to distinguish an I/O exception from the case that the file is not a normal file, or where several attributes of the same file are required at the same time, then the Files.readAttributes method may be used.

Returns:boolean

true if and only if the file denoted by this abstract pathname exists and is a normal file; false otherwise

Annotations
@Override