object DbpfFile
- Alphabetic
- By Inheritance
- DbpfFile
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
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()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
-
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()
-
def
read(file: JFile)(implicit eh: ExceptionHandler): ![DbpfFile, IOException]
Creates a new
DbpfFile
by the reading the contents from a file.Creates a new
DbpfFile
by the reading the contents from a file.- file
the file to read
- returns
a
DbpfFile
corresponding to thefile
- Exceptions thrown
DbpfFileFormatException
if magic number is not DBPF, or DBPF format is not supported (i.e. major.minor version is not 1.0)EOFException
if the end of the file is reached unexpectedlyFileNotFoundException
if file does not exist or is inaccessibleIOException
in case of other IO errors
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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], file: JFile, dateCreated: Option[UInt] = None, dateModified: Option[UInt] = None)(implicit eh: ExceptionHandler): ![DbpfFile, IOException]
Writes a
DbpfFile
back to a file.Writes a
DbpfFile
back to a file.If the target
file
already exists, theDbpfFile
will be written to an intermediate temporary file, which upon success will be renamed tofile
. This ensures thatStreamedEntries
can be written to the same file they are read from. After completion, thoseStreamedEntries
are out-of-date and should be replaced by theDbpfFile
that is returned, which contains the current entries of that file.- entries
the entries to be written
- file
the target file
- dateCreated
the creation date of the DbpfFile. This is a value of the DBPF file header which should be preserved if possible. If no value is given, this defaults to
dateModified
if given or the current time otherwise.- dateModified
the modification date of the DbpfFile (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