class DbpfFile extends AnyRef
A container for DbpfEntries
that are read from and written to a file.
Instances of this class may be obtained via the DbpfFile.read method.
The write
methods may be used for writing entries back to a file.
A DbpfFile
is immutable, but the entries of this file might not be.
- Source
- DbpfFile.scala
- Alphabetic
- By Inheritance
- DbpfFile
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val entries: IndexedSeq[StreamedEntry]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val file: JFile
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val header: Header
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
lazy val
tgiMap: Map[Tgi, StreamedEntry]
maps the TGIs of this file to its entries.
maps the TGIs of this file to its entries. If the file contains duplicate instances of the same TGI, this map links to the first occurence (the one that would be seen by the game).
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
write(entries: scala.collection.compat.IterableOnce[DbpfEntry] = entries, file: JFile = file, dateModified: Option[UInt] = None)(implicit eh: ExceptionHandler): ![DbpfFile, IOException]
Writes a
DbpfFile
back to a file.Writes a
DbpfFile
back to a file.This method behaves like DbpfFile.write, except that it preserves the creation date of this
DbpfFile
and provides suitable default parameters.- entries
the entries to be written, defaults to entries
- file
the target file, defaults to file
- dateModified
(primarily for debugging) defaults to current time
- returns
a new
DbpfFile
that represents the current state of thefile
- Exceptions thrown
DbpfStreamStreamOutOfDateException
if the source file has been modified since a StreamedEntry was createdFileNotFoundException
if the target file is inaccessibleIOException
in case of other IO errors- See also