class
AbstractFile
extends Iterable[AbstractFile]
Instance Constructors
-
new
AbstractFile
()
Abstract Value Members
-
-
-
def
create
(): Unit
-
def
delete
(): Unit
-
def
file
: JFile
-
def
input
: InputStream
-
def
isDirectory
: Boolean
-
def
iterator
: Iterator[AbstractFile]
-
def
lastModified
: Long
-
def
lookupName
(name: String, directory: Boolean): AbstractFile
-
def
lookupNameUnchecked
(name: String, directory: Boolean): AbstractFile
-
def
name
: String
-
def
output
: OutputStream
-
def
path
: String
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
++
[B >: AbstractFile, That]
(that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
++
[B >: AbstractFile, That]
(that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
++:
[B >: AbstractFile, That]
(that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
++:
[B >: AbstractFile, That]
(that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
/:
[B]
(z: B)(op: (B, AbstractFile) ⇒ B): B
-
def
/:\
[A1 >: AbstractFile]
(z: A1)(op: (A1, A1) ⇒ A1): A1
-
def
:\
[B]
(z: B)(op: (AbstractFile, B) ⇒ B): B
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
addString
(b: StringBuilder): StringBuilder
-
def
addString
(b: StringBuilder, sep: String): StringBuilder
-
def
addString
(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
-
def
aggregate
[B]
(z: B)(seqop: (B, AbstractFile) ⇒ B, combop: (B, B) ⇒ B): B
-
def
asInstanceOf
[T0]
: T0
-
def
bufferedOutput
: BufferedOutputStream
-
def
canEqual
(that: Any): Boolean
-
def
clone
(): AnyRef
-
def
collect
[B, That]
(pf: PartialFunction[AbstractFile, B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
collectFirst
[B]
(pf: PartialFunction[AbstractFile, B]): Option[B]
-
def
companion
: GenericCompanion[Iterable]
-
def
copyToArray
[B >: AbstractFile]
(xs: Array[B], start: Int, len: Int): Unit
-
def
copyToArray
[B >: AbstractFile]
(xs: Array[B]): Unit
-
def
copyToArray
[B >: AbstractFile]
(xs: Array[B], start: Int): Unit
-
def
copyToBuffer
[B >: AbstractFile]
(dest: Buffer[B]): Unit
-
def
count
(p: (AbstractFile) ⇒ Boolean): Int
-
def
drop
(n: Int): Iterable[AbstractFile]
-
def
dropRight
(n: Int): Iterable[AbstractFile]
-
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
exists
: Boolean
-
def
exists
(p: (AbstractFile) ⇒ Boolean): Boolean
-
def
fileNamed
(name: String): AbstractFile
-
-
-
def
finalize
(): Unit
-
-
def
flatMap
[B, That]
(f: (AbstractFile) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
flatten
[B]
(implicit asTraversable: (AbstractFile) ⇒ TraversableOnce[B]): Traversable[B]
-
def
fold
[A1 >: AbstractFile]
(z: A1)(op: (A1, A1) ⇒ A1): A1
-
def
foldLeft
[B]
(z: B)(op: (B, AbstractFile) ⇒ B): B
-
def
foldRight
[B]
(z: B)(op: (AbstractFile, B) ⇒ B): B
-
def
forall
(p: (AbstractFile) ⇒ Boolean): Boolean
-
def
foreach
[U]
(f: (AbstractFile) ⇒ U): Unit
-
def
genericBuilder
[B]
: Builder[B, Iterable[B]]
-
def
getClass
(): java.lang.Class[_]
-
-
def
grouped
(size: Int): Iterator[Iterable[AbstractFile]]
-
def
hasDefiniteSize
: Boolean
-
def
hasExtension
(other: String): Boolean
-
def
hashCode
(): Int
-
-
def
headOption
: Option[AbstractFile]
-
-
def
inits
: Iterator[Iterable[AbstractFile]]
-
def
isClassContainer
: Boolean
-
def
isEmpty
: Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
isTraversableAgain
: Boolean
-
-
def
lastOption
: Option[AbstractFile]
-
def
lookupPath
(path: String, directory: Boolean): AbstractFile
-
def
lookupPathUnchecked
(path: String, directory: Boolean): AbstractFile
-
def
map
[B, That]
(f: (AbstractFile) ⇒ B)(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
-
def
maxBy
[B]
(f: (AbstractFile) ⇒ B)(implicit cmp: Ordering[B]): AbstractFile
-
-
def
minBy
[B]
(f: (AbstractFile) ⇒ B)(implicit cmp: Ordering[B]): AbstractFile
-
def
mkString
: String
-
def
mkString
(sep: String): String
-
def
mkString
(start: String, sep: String, end: String): String
-
def
ne
(arg0: AnyRef): Boolean
-
-
def
nonEmpty
: Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
-
-
-
def
product
[B >: AbstractFile]
(implicit num: Numeric[B]): B
-
def
reduce
[A1 >: AbstractFile]
(op: (A1, A1) ⇒ A1): A1
-
-
def
reduceLeftOption
[B >: AbstractFile]
(op: (B, AbstractFile) ⇒ B): Option[B]
-
def
reduceOption
[A1 >: AbstractFile]
(op: (A1, A1) ⇒ A1): Option[A1]
-
-
def
reduceRightOption
[B >: AbstractFile]
(op: (AbstractFile, B) ⇒ B): Option[B]
-
-
-
def
sameElements
[B >: AbstractFile]
(that: Iterable[B]): Boolean
-
def
sameElements
[B >: AbstractFile]
(that: GenIterable[B]): Boolean
-
def
scan
[B >: AbstractFile, That]
(z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
scanLeft
[B, That]
(z: B)(op: (B, AbstractFile) ⇒ B)(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
def
scanRight
[B, That]
(z: B)(op: (AbstractFile, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[AbstractFile], B, That]): That
-
-
def
size
: Int
-
def
sizeOption
: Option[Int]
-
def
slice
(from: Int, until: Int): Iterable[AbstractFile]
-
def
sliding
[B >: AbstractFile]
(size: Int, step: Int): Iterator[Iterable[AbstractFile]]
-
def
sliding
[B >: AbstractFile]
(size: Int): Iterator[Iterable[AbstractFile]]
-
-
-
def
stringPrefix
: String
-
def
subdirectoryNamed
(name: String): AbstractFile
-
def
sum
[B >: AbstractFile]
(implicit num: Numeric[B]): B
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
-
def
tails
: Iterator[Iterable[AbstractFile]]
-
def
take
(n: Int): Iterable[AbstractFile]
-
def
takeRight
(n: Int): Iterable[AbstractFile]
-
-
def
thisCollection
: Iterable[AbstractFile]
-
def
toArray
[B >: AbstractFile]
(implicit arg0: ClassManifest[B]): Array[B]
-
def
toBuffer
[B >: AbstractFile]
: Buffer[B]
-
def
toByteArray
: Array[Byte]
-
def
toCharArray
: Array[Char]
-
-
def
toIndexedSeq
[B >: AbstractFile]
: IndexedSeq[B]
-
def
toIterable
: Iterable[AbstractFile]
-
def
toIterator
: Iterator[AbstractFile]
-
-
def
toMap
[T, U]
(implicit ev: <:<[AbstractFile, (T, U)]): Map[T, U]
-
-
def
toSet
[B >: AbstractFile]
: Set[B]
-
-
def
toString
(): String
-
def
toTraversable
: Traversable[AbstractFile]
-
def
toURL
: URL
-
def
transpose
[B]
(implicit asTraversable: (AbstractFile) ⇒ TraversableOnce[B]): Traversable[Traversable[B]]
-
def
underlyingSource
: Option[AbstractFile]
-
def
unsupported
(msg: String): Nothing
-
def
unsupported
(): Nothing
-
def
unzip
[A1, A2]
(implicit asPair: (AbstractFile) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
-
def
unzip3
[A1, A2, A3]
(implicit asTriple: (AbstractFile) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
-
def
view
(from: Int, until: Int): IterableView[AbstractFile, Iterable[AbstractFile]]
-
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
-
def
zip
[A1 >: AbstractFile, B, That]
(that: Iterable[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], (A1, B), That]): That
-
def
zip
[A1 >: AbstractFile, B, That]
(that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[AbstractFile], (A1, B), That]): That
-
def
zipAll
[B, A1 >: AbstractFile, That]
(that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[AbstractFile], (A1, B), That]): That
-
def
zipAll
[B, A1 >: AbstractFile, That]
(that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[AbstractFile], (A1, B), That]): That
-
def
zipWithIndex
[A1 >: AbstractFile, That]
(implicit bf: CanBuildFrom[Iterable[AbstractFile], (A1, Int), That]): That
Inherited from Equals
Inherited from GenericTraversableTemplate[AbstractFile, Iterable]
Inherited from AnyRef
Inherited from Any
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 classSourceFile
is used, which honorsglobal.settings.encoding.value
.