Dotty Documentation

0.4.0-bin-SNAPSHOT

package dotty.tools.io

[-] Constructors

[-] Members

[+] abstract class 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.

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

[+] object AbstractFile

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

[+] object ClassPath
[+] trait ClassPath

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

[+] class Directory

An abstraction for directories.

[+] object Directory

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

[+] @deprecated sealed abstract class DirectoryClassPath
[+] class File

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.

[+] object File

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

[+] case class FileOperationException

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

[+] final class FileZipArchive

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

[+] class Jar
[+] object Jar
[+] class JarWriter
[+] @deprecated sealed abstract class JavaClassPath
[+] final class ManifestResources
[+] @deprecated sealed abstract class MergedClassPath
[+] object NoAbstractFile

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

[+] class Path

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

[+] 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.

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

[+] class PlainDirectory

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

[+] class PlainFile

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

[+] class PlainNioFile
[+] object Streamable

Traits for objects which can be represented as Streams.

[+] class VirtualDirectory

An in-memory directory.

[+] class VirtualFile

This class implements an in-memory file.

[+] abstract class ZipArchive

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

[+] 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.

[+] type JFile = File
[+] type JManifest = Manifest