This class implements an in-memory file.
Attributes
- Authors:
-
Philippe Altherr
- Version
-
1.0, 23/03/2004 ''Note: This library is considered experimental and should not be used unless you know what you are doing.''
- Companion
- object
- Graph
-
- Supertypes
-
class AbstractFiletrait Iterable[AbstractFile]trait IterableOnce[AbstractFile]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Value members
Constructors
Initializes this instance with the specified name and an identical path.
Initializes this instance with the specified name and an identical path.
Value parameters
- name
-
the name of the virtual file to be created
Attributes
- Returns
-
the created virtual file
Initializes this instance with the specified path and a name taken from the last path element.
Initializes this instance with the specified path and a name taken from the last path element.
Value parameters
- content
-
the initial contents of the virtual file
- path
-
the path of the virtual file to be created
Attributes
- Returns
-
the created virtual file
Concrete methods
The absolute file, if this is a relative file.
The absolute file, if this is a relative file.
Attributes
Returns the containing directory of this abstract file
Returns the containing directory of this abstract file
Attributes
Does this abstract file denote an existing file?
Does this abstract file denote an existing file?
Attributes
Delete the underlying file or directory (recursively).
Delete the underlying file or directory (recursively).
Attributes
returns an input stream so the file can be read
returns an input stream so the file can be read
Attributes
Is this abstract file a directory?
Is this abstract file a directory?
Attributes
Does this abstract file correspond to something on-disk?
Returns all abstract subfiles of this abstract directory.
Returns all abstract subfiles of this abstract directory.
Attributes
Returns the time that this abstract file was last modified.
Returns the time that this abstract file was last modified.
Attributes
Returns the abstract file in this abstract directory with the specified name. If there is no such file, returns null. The argument "directory" tells whether to look for a directory or or a regular file.
Returns the abstract file in this abstract directory with the specified name. If there is no such file, returns null. The argument "directory" tells whether to look for a directory or or a regular file.
Attributes
Returns an abstract file with the given name. It does not check that it exists.
Returns an abstract file with the given name. It does not check that it exists.
Attributes
Returns an output stream for writing the file
size of this file if it is a concrete file.
Inherited methods
Attributes
- Inherited from:
- IterableOps
Returns the absolute path of this abstract file.
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns a buffered output stream for writing the file - defaults to out
Returns a buffered output stream for writing the file - defaults to out
Attributes
- Inherited from:
- AbstractFile
Returns the path of this abstract file in a canonical form.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableFactoryDefaults
Does this abstract file denote an existing file?
Attributes
- Inherited from:
- IterableOnceOps
Returns the underlying File if any and null otherwise.
Get the file in this directory with the given name, creating an empty file if it does not already existing.
Get the file in this directory with the given name, creating an empty file if it does not already existing.
Attributes
- Inherited from:
- AbstractFile
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Checks extension case insensitively.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Does this abstract file represent something which can contain classfiles?
Does this abstract file represent something which can contain classfiles?
Attributes
- Inherited from:
- AbstractFile
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Drill down through subdirs looking for the target, as in lookupName. Ths target name is the last of parts.
Drill down through subdirs looking for the target, as in lookupName. Ths target name is the last of parts.
Attributes
- Inherited from:
- AbstractFile
Return an abstract file that does not check that path
denotes an existing file.
Return an abstract file that does not check that path
denotes an existing file.
Attributes
- Inherited from:
- AbstractFile
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Get the subdirectory with a given name, creating it if it does not already exist.
Get the subdirectory with a given name, creating it if it does not already exist.
Attributes
- Inherited from:
- AbstractFile
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns contents of file (if applicable) in a byte array.
Returns contents of file (if applicable) in a Char array. warning: use Global.getSourceFile()
to use the proper encoding when converting to the char array.
Returns contents of file (if applicable) in a Char array. warning: use Global.getSourceFile()
to use the proper encoding when converting to the char array.
Attributes
- Inherited from:
- AbstractFile
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns the path of this abstract file.
Attributes
- Inherited from:
- AbstractFile
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
An underlying source, if known. Mostly, a zip/jar file.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Inherited fields
Attributes
- Inherited from:
- AbstractFile