scalax.file.ramfs

RamFileSystem

class RamFileSystem extends FileSystem

Linear Supertypes
FileSystem, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RamFileSystem
  2. FileSystem
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RamFileSystem(id: RamFsId = RamFileSystem.RamFsId(), separator: String = "/", context: ResourceContext = DefaultResourceContext)

Type Members

  1. type PathType = RamPath

    Definition Classes
    RamFileSystemFileSystem

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def apply(relativeTo: String, segments: Seq[String]): RamPath

  5. def apply(pathRepresentation: String, separator: Char): PathType

    Definition Classes
    FileSystem
  6. def apply(segments: String*): PathType

    Definition Classes
    FileSystem
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def checkSegmentForSeparators(segment: String): Unit

    Checks if the separator or a "Common" separator is in the segment.

    Checks if the separator or a "Common" separator is in the segment.

    If the separator is found the an IllegalArgumentException is thrown. If a common separator is found (/ or \) then a warning is logged and the stack trace is logged if fine is enabled for the filesystem's logger.

    Definition Classes
    FileSystem
    Exceptions thrown
    IllegalArgumentException

    If the separator is found the an IllegalArgumentException is thrown

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val context: ResourceContext

    Get the Resource context associated with this FileSystem instance.

    Get the Resource context associated with this FileSystem instance.

    returns

    the associated ResourceContext

    Definition Classes
    RamFileSystemFileSystem
    Note

    as FileSystems are immutable objects a given Resource instance will always be associated with the same ResourceContext

  11. def createTempDirectory(prefix: String = randomPrefix, suffix: String = null, dir: String = null, deleteOnExit: Boolean = true): RamPath

    Creates an empty directory in the provided directory with the provided prefix and suffixes, if the filesystem supports it.

    Creates an empty directory in the provided directory with the provided prefix and suffixes, if the filesystem supports it. If not then a UnsupportedOperationException is thrown. The directory will not replace an existing file/directory and it is guaranteed to be unique and not previously used by another process at time of creation.

    prefix

    the starting characters of the directory name. Default is a randomly generated prefix

    suffix

    the last characters of the directory name Default is null (no suffix)

    dir

    the directory to create the directory in. If null or not declared the directory will be created in the system temporary folder Default is null (system/user temp folder)

    deleteOnExit

    If true then the directory and all contained folders will be deleted when the JVM is shutdown. Default is true

    Definition Classes
    RamFileSystemFileSystem
    Exceptions thrown
    java.lang.UnsupportedOperationException

    If the filesystem does not support temporary files

  12. def createTempFile(prefix: String = randomPrefix, suffix: String = null, dir: String = null, deleteOnExit: Boolean = true): RamPath

    Creates an empty file in the provided directory with the provided prefix and suffixes, if the filesystem supports it.

    Creates an empty file in the provided directory with the provided prefix and suffixes, if the filesystem supports it. If not then a UnsupportedOperationException is thrown.

    The file will not replace an existing file and it is guaranteed to be unique and not previously used by another process at time of creation.

    prefix

    the starting characters of the file name. Default is a randomly generated prefix

    suffix

    the last characters of the file name Default is null (no suffix)

    dir

    the directory to create the file in. If null or not declared the file will be created in the system temporary folder Default is null (system/user temp folder)

    deleteOnExit

    If true then the file will be deleted when the JVM is shutdown Default is true

    Definition Classes
    RamFileSystemFileSystem
    Exceptions thrown
    java.lang.UnsupportedOperationException

    If the filesystem does not support temporary files

  13. def doCreateFromSeq(segments: Seq[String]): RamPath

    Attributes
    protected
    Definition Classes
    RamFileSystemFileSystem
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def fromSeq(segments: Seq[String]): PathType

    Create a path object for the filesystem from the path segments

    Create a path object for the filesystem from the path segments

    Definition Classes
    FileSystem
  18. def fromString(path: String): RamPath

    Create a path object for the filesystem

    Create a path object for the filesystem

    Definition Classes
    RamFileSystemFileSystem
  19. def fromStrings(relativeTo: String, path: String): RamPath

    Attributes
    protected[scalax.file.ramfs]
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. val id: RamFsId

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. val legalChars: List[Char]

    Attributes
    protected
    Definition Classes
    FileSystem
  25. lazy val logger: Logger

    Attributes
    protected
    Definition Classes
    FileSystem
  26. def matcher(pattern: String, syntax: String = PathMatcher.StandardSyntax.GLOB): PathMatcher[Path]

    Creates a function that returns true if parameter matches the pattern used to create the function.

    Creates a function that returns true if parameter matches the pattern used to create the function.

    If the syntax is glob then the following patterns are accepted:

    • The * character matches zero or more characters of a name component without crossing directory boundaries.
    • <The ** characters matches zero or more characters crossing directory boundaries.
    • The ? character matches exactly one character of a name component.
    • The backslash character (\) is used to escape characters that would otherwise be interpreted as special characters. The expression \\ matches a single backslash and "\{" matches a left brace for example.

    Currently unsupported slated to be supported shortly are:

    • The [ ] characters are a bracket expression that match a single character of a name component out of a set of characters. For example, [abc] matches "a", "b", or "c". The hyphen (-) may be used to specify a range so [a-z] specifies a range that matches from "a" to "z" (inclusive). These forms can be mixed so [abce-g] matches "a", "b", "c", "e", "f" or "g". If the character after the [ is a ! then it is used for negation so [!a-c] matches any character except "a", "b", or "c".
    • Within a bracket expression the *, ? and \ characters match themselves. The (-) character matches itself if it is the first character within the brackets, or the first character after the ! if negating.
    • The { } characters are a group of subpatterns, where the group matches if any subpattern in the group matches. The "," character is used to separate the subpatterns. Groups cannot be nested.
    • All other characters match themselves in an implementation dependent manner. This includes characters representing any name-separators.

    The matching of root components is highly implementation-dependent and is not specified.

    If the syntax is regex then the pattern component is a pattern as defined by the java.util.regex.Pattern class

    In both cases the matching is case sensitive

    pattern

    the pattern of the match

    syntax

    the identifier of the syntax that will be used to interpret the pattern Default is glob

    returns

    a function that matches paths against the matching specification in syntax and Pattern

    Definition Classes
    FileSystem
    See also

    Path#contents

  27. val name: String

    A name identifying the filesystem

    A name identifying the filesystem

    Definition Classes
    RamFileSystemFileSystem
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. lazy val presentWorkingDirectory: PathType forSome {val _1: PathType}

    Definition Classes
    FileSystem
  32. var pwd: RamPath

  33. def randomPrefix: String

    Definition Classes
    FileSystem
  34. val root: RamPath

  35. def roots: Set[RamPath]

    Returns the list of roots for this filesystem

    Returns the list of roots for this filesystem

    Definition Classes
    RamFileSystemFileSystem
  36. val separator: String

    The path segment separator string for the filesystem

    The path segment separator string for the filesystem

    Definition Classes
    RamFileSystemFileSystem
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    RamFileSystem → AnyRef → Any
  39. def updateContext(f: (ResourceContext) ⇒ ResourceContext): RamFileSystem

    Update the current ResourceContext and return a new FileSystem instance with the updated context

    Update the current ResourceContext and return a new FileSystem instance with the updated context

    f

    A function for transforming the current context to a new context with new values.

    returns

    a new instance configured with the new context

    Definition Classes
    RamFileSystemFileSystem
  40. def updateContext(newContext: ResourceContext): RamFileSystem

    Create a new FileSystem instance that is configured with the new ResourceContext

    Create a new FileSystem instance that is configured with the new ResourceContext

    newContext

    a new ResourceContext

    returns

    a new instance configured with the new context

    Definition Classes
    RamFileSystemFileSystem
  41. def uri(path: RamPath = root): URI

  42. lazy val urlStreamHandler: Option[URLStreamHandler]

    Returns a URLStreamHandler if the protocol in the URI is not supported by default JAVA.

    Returns a URLStreamHandler if the protocol in the URI is not supported by default JAVA. This handler is used to construct URLs for the Paths as well as by scalax.file.PathURLStreamHandlerFactory The default behavoir is to return None this assumes that the default protocol handlers can handle the protocol

    Definition Classes
    RamFileSystemFileSystem
  43. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileSystem

Inherited from AnyRef

Inherited from Any

Ungrouped