dotty.tools.io

Members list

Concise view

Type members

Classlikes

An abstraction over files for use in the reflection/compiler libraries.

An abstraction over files for use in the reflection/compiler libraries.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Authors:

Philippe Altherr

Version:

1.0, 23/03/2004

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class AbstractFile extends Iterable[AbstractFile]

This class and its children serve to unify handling of files and directories. These files and directories may or may not have some real counter part within the file system. For example, some file handles reference files within a zip archive or virtual ones that exist only in memory.

This class and its children serve to unify handling of files and directories. These files and directories may or may not have some real counter part within the file system. For example, some file handles reference files within a zip archive or virtual ones that exist only in memory.

Every abstract file has a path (i.e. a full name) and a name (i.e. a short name) and may be backed by some real File. There are two different kinds of abstract files: regular files and directories. Regular files may be read and have a last modification time. Directories may list their content and look for subfiles with a specified name or path and of a specified kind.

The interface does not allow to access the content. The class symtab.classfile.AbstractFileReader accesses bytes, knowing that the character set of classfiles is UTF-8. For all other cases, the class SourceFile is used, which honors global.settings.encoding.value.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Companion:
object
Graph
Supertypes
Known subtypes
trait ClassPath

A representation of the compiler's class- or sourcepath.

A representation of the compiler's class- or sourcepath.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ClassPath

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Directory

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class Directory(jpath: JPath) extends Path

An abstraction for directories.

An abstraction for directories.

Attributes

Authors:

Paul Phillips

Since:

2.8 ''Note: This is library is considered experimental and should not be used unless you know what you are doing.''

Companion:
object
Graph
Supertypes
class Path
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait ClassPath
class Object
trait Matchable
class Any
Known subtypes
trait DirectoryLookup[FileEntryType]
trait JFileDirectoryLookup[FileEntryType]
trait ZipArchiveFileLookup[FileEntryType]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
object File

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
File.type
class File(jpath: JPath)(implicit constructorCodec: Codec) extends Path with Chars

An abstraction for files. For character data, a Codec can be supplied at either creation time or when a method involving character data is called (with the latter taking precedence if supplied.) If neither is available, the value of scala.io.Codec.default is used.

An abstraction for files. For character data, a Codec can be supplied at either creation time or when a method involving character data is called (with the latter taking precedence if supplied.) If neither is available, the value of scala.io.Codec.default is used.

Attributes

Authors:

Paul Phillips

Since:

2.8 ''Note: This is library is considered experimental and should not be used unless you know what you are doing.''

Companion:
object
Graph
Supertypes
trait Chars
trait Bytes
class Path
class Object
trait Matchable
class Any

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
class Object
trait Matchable
class Any
final class FileZipArchive(jpath: JPath, release: Option[String]) extends ZipArchive

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Graph
Supertypes
class Jar(file: File)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Jar

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Jar.type

This class implements an AbstractFile backed by a jar that be can used as the compiler's output directory.

This class implements an AbstractFile backed by a jar that be can used as the compiler's output directory.

Attributes

Companion:
object
Graph
Supertypes
object JarArchive

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class JarWriter(val file: File, val manifest: Manifest)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
final class ManifestResources(val url: URL) extends ZipArchive

Attributes

Graph
Supertypes

A distinguished object so you can avoid both null and Option.

A distinguished object so you can avoid both null and Option.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Graph
Supertypes
Self type
object Path

An abstraction for filesystem paths. The differences between Path, File, and Directory are primarily to communicate intent. Since the filesystem can change at any time, there is no way to reliably associate Files only with files and so on. Any Path can be converted to a File or Directory (and thus gain access to the additional entity specific methods) by calling toFile or toDirectory, which has no effect on the filesystem.

An abstraction for filesystem paths. The differences between Path, File, and Directory are primarily to communicate intent. Since the filesystem can change at any time, there is no way to reliably associate Files only with files and so on. Any Path can be converted to a File or Directory (and thus gain access to the additional entity specific methods) by calling toFile or toDirectory, which has no effect on the filesystem.

Also available are createFile and createDirectory, which attempt to create the path in question.

Attributes

Authors:

Paul Phillips

Since:

2.8 ''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Path.type
class Path

The Path constructor is private so we can enforce some semantics regarding how a Path might relate to the world.

The Path constructor is private so we can enforce some semantics regarding how a Path might relate to the world.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Directory
class File
class PlainDirectory(givenPath: Directory) extends PlainFile

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Graph
Supertypes
Known subtypes
class PlainFile(val givenPath: Path) extends AbstractFile

This class implements an abstract file backed by a File.

This class implements an abstract file backed by a File.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Companion:
object
Graph
Supertypes
Known subtypes
object PlainFile

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Streamable

Traits for objects which can be represented as Streams.

Traits for objects which can be represented as Streams.

Attributes

Authors:

Paul Phillips

Since:

2.8 ''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class VirtualDirectory(val name: String, maybeContainer: Option[VirtualDirectory]) extends AbstractFile

An in-memory directory.

An in-memory directory.

Attributes

Authors:

Lex Spoon ''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Graph
Supertypes
class VirtualFile(val name: String, val path: String) extends AbstractFile

This class implements an in-memory file.

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
Known subtypes
class Entry
class DirEntry

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object ZipArchive

An abstraction for zip files and streams. Everything is written the way it is for performance: we come through here a lot on every run. Be careful about changing it.

An abstraction for zip files and streams. Everything is written the way it is for performance: we come through here a lot on every run. Be careful about changing it.

Attributes

Authors:

Philippe Altherr (original version)

Paul Phillips (this one)

Version:

2.0, ''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class ZipArchive(val jpath: JPath, release: Option[String]) extends AbstractFile with Equals

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Attributes

Companion:
object
Graph
Supertypes
Known subtypes
Self type

Deprecated classlikes

sealed abstract class DirectoryClassPath

Attributes

Deprecated
[Since version 2.12.0]
Graph
Supertypes
class Object
trait Matchable
class Any
sealed abstract class JavaClassPath

Attributes

Deprecated
[Since version 2.12.0]
Graph
Supertypes
class Object
trait Matchable
class Any
sealed abstract class MergedClassPath

Attributes

Deprecated
[Since version 2.12.0]
Graph
Supertypes
class Object
trait Matchable
class Any

Types

type JFile = File
type JPath = Path