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 = ..., separator: String = "/", context: ResourceContext = scalax.io.DefaultResourceContext)

Type Members

  1. type PathType = RamPath

    Definition Classes
    RamFileSystemFileSystem

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

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

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

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

    Definition Classes
    Any
  10. 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

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. 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

  13. 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

  14. 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

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

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. 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
  20. def fromString(path: String): RamPath

    Create a path object for the filesystem

    Create a path object for the filesystem

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

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

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

    Definition Classes
    AnyRef → Any
  24. val id: RamFsId

  25. final def isInstanceOf[T0]: Boolean

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

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

    Attributes
    protected
    Definition Classes
    FileSystem
  28. 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

  29. val name: String

    A name identifying the filesystem

    A name identifying the filesystem

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

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

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

    Definition Classes
    AnyRef
  33. lazy val presentWorkingDirectory: PathType forSome {val _10: PathType}

    Definition Classes
    FileSystem
  34. var pwd: RamPath

  35. def randomPrefix: String

    Definition Classes
    FileSystem
  36. val root: RamPath

  37. def roots: Set[RamPath]

    Returns the list of roots for this filesystem

    Returns the list of roots for this filesystem

    Definition Classes
    RamFileSystemFileSystem
  38. val separator: String

    The path segment separator string for the filesystem

    The path segment separator string for the filesystem

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

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    RamFileSystem → AnyRef → Any
  41. 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
  42. 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
  43. def uri(path: RamPath = root): URI

  44. lazy val urlStreamHandler: Option[URLStreamHandler]

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from FileSystem

Inherited from AnyRef

Inherited from Any

Ungrouped