Uses of Class
net.mtrop.doom.WadEntry
Package
Description
Contains the base structural abstracts for this library.
Contains utility classes.
-
Uses of WadEntry in net.mtrop.doom
Modifier and TypeMethodDescriptiondefault WadEntry
Adds data to this Wad, usingentryName
as the name of the new entry.default <BO extends BinaryObject>
WadEntryAdds data to this Wad, usingentryName
as the name of the new entry.default <BO extends BinaryObject>
WadEntryAdds data to this Wad, usingentryName
as the name of the new entry.default WadEntry
Adds data to this Wad, usingentryName
as the name of the new entry.default WadEntry
Wad.addData
(String entryName, InputStream in) Adds data to this Wad, usingentryName
as the name of the new entry.default WadEntry
Wad.addData
(String entryName, InputStream in, int maxLength) Adds data to this Wad, usingentryName
as the name of the new entry.default <TO extends TextObject>
WadEntryAdds data to this Wad, usingentryName
as the name of the new entry.Adds data to this Wad, usingentryName
as the name of the new entry.<BO extends BinaryObject>
WadEntryAdds data to this Wad, usingentryName
as the name of the new entry.<BO extends BinaryObject>
WadEntryAdds data to this Wad, usingentryName
as the name of the new entry.Adds data to this Wad, usingentryName
as the name of the new entry.WadFile.Adder.addData
(String entryName, InputStream in) Adds data to this Wad, usingentryName
as the name of the new entry.WadFile.Adder.addData
(String entryName, InputStream in, int maxLength) Adds data to this Wad, usingentryName
as the name of the new entry.<TO extends TextObject>
WadEntryAdds data to this Wad, usingentryName
as the name of the new entry.WadMap.addData
(String entryName, InputStream in, int maxLength) default WadEntry
Adds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.default <BO extends BinaryObject>
WadEntryAdds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.default <BO extends BinaryObject>
WadEntryAdds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.default WadEntry
Adds data to this Wad, usingentryName
as the name of the new entry.default WadEntry
Wad.addDataAt
(int index, String entryName, InputStream in) Adds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.Wad.addDataAt
(int index, String entryName, InputStream in, int maxLength) Adds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.default <TO extends TextObject>
WadEntryAdds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.WadBuffer.addDataAt
(int index, String entryName, InputStream in, int maxLength) WadFile.addDataAt
(int index, String entryName, InputStream in, int maxLength) Adds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.<BO extends BinaryObject>
WadEntryAdds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.<BO extends BinaryObject>
WadEntryAdds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.Adds data to this Wad, usingentryName
as the name of the new entry.WadFile.Adder.addDataAt
(int index, String entryName, InputStream in) Adds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.WadFile.Adder.addDataAt
(int index, String entryName, InputStream in, int maxLength) Adds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.<TO extends TextObject>
WadEntryAdds data to this Wad at a particular entry offset, usingentryName
as the name of the entry.WadMap.addDataAt
(int index, String entryName, InputStream in, int maxLength) default WadEntry
Adds a new entry to the Wad, but with an explicit offset and size.default WadEntry
Adds a new entry to the Wad.Adds a new entry to the Wad, but with an explicit offset and size.default WadEntry
Wad.addEntryAt
(int index, String entryName, int offset, int length) Adds a new entry to the Wad at a specific index, but with an explicit offset and size.Wad.addEntryAt
(int index, WadEntry entry) Adds a new entry to the Wad.WadBuffer.addEntryAt
(int index, WadEntry entry) WadFile.addEntryAt
(int index, WadEntry entry) WadMap.addEntryAt
(int index, WadEntry entry) default WadEntry
Adds an entry marker to the Wad (entry with 0 size, arbitrary offset).Adds an entry marker to the Wad (entry with 0 size, arbitrary offset).default WadEntry
Wad.addMarkerAt
(int index, String entryName) Adds an entry marker to the Wad (entry with 0 size, arbitrary offset).WadFile.Adder.addMarkerAt
(int index, String entryName) Adds an entry marker to the Wad (entry with 0 size, arbitrary offset).static WadEntry
WadEntry.create
(byte[] b) Creates a WadEntry.static WadEntry
Creates an empty WadEntry with an offset of 12 (beginning of content) and size zero.static WadEntry
Creates a WadEntry.Wad.deleteEntry
(int index) Deletes a Wad's entry and its contents.WadBuffer.deleteEntry
(int n) WadFile.deleteEntry
(int n) WadMap.deleteEntry
(int n) default WadEntry[]
Wad.getAllEntries()
Returns all WadEntry objects (in a new array).default WadEntry[]
Wad.getAllEntries
(String entryName) Returns all WadEntry objects namedentryName
.Wad.getEntry
(int n) Gets the WadEntry at index n.default WadEntry
Gets the first WadEntry namedentryName
.default WadEntry
Z Gets the first WadEntry namedentryName
, starting from a particular index.default WadEntry
Gets the first WadEntry namedentryName
, starting from a particular entry's index.WadBuffer.getEntry
(int n) WadFile.getEntry
(int n) WadMap.getEntry
(int n) default WadEntry
Wad.getLastEntry
(String entryName) Gets the last WadEntry namedentryName
.default WadEntry
Wad.getNthEntry
(String entryName, int n) Gets the n-th WadEntry namedentryName
.default WadEntry[]
Wad.mapEntries
(int startIndex, int maxLength) Retrieves a contiguous set of entries from this Wad, starting from a desired index.Wad.removeEntry
(int index) Remove a Wad's entry (but not contents).WadBuffer.removeEntry
(int n) WadFile.removeEntry
(int n) WadMap.removeEntry
(int n) WadEntry.withNewName
(String name) Makes a copy of this entry with a new name.WadEntry.withNewOffset
(int offset) Makes a copy of this entry with a new offset.WadEntry.withNewSize
(int size) Makes a copy of this entry with a new size.Modifier and TypeMethodDescriptiondefault WadEntry
Adds a new entry to the Wad.Wad.addEntryAt
(int index, WadEntry entry) Adds a new entry to the Wad.WadBuffer.addEntryAt
(int index, WadEntry entry) WadFile.addEntryAt
(int index, WadEntry entry) WadMap.addEntryAt
(int index, WadEntry entry) default void
Takes entries and their data from another Wad and adds it to this one.default void
Takes entries and their data from another Wad and adds it to this one at a specific index.void
static WadBuffer
Creates a new WadBuffer from a subset of entries (and their data) from another Wad.static WadFile
Creates a new WadFile from a subset of entries (and their data) from another Wad.default int
Fetches the data of the specified entry and puts it in a provided array.default byte[]
Retrieves the data of the specified entry.byte[]
default <BO extends BinaryObject>
BORetrieves the data of the specified entry as a deserialized lump.default <BO extends BinaryObject>
BO[]Retrieves the data of the specified entry as a deserialized lump of multiple objects.default <BO extends BinaryObject>
List<BO>Wad.getDataAsList
(WadEntry entry, Class<BO> type, int objectLength) Retrieves the data of the specified entry as a deserialized lump of multiple objects.default <BO extends BinaryObject>
BinaryObject.InlineScanner<BO>Wad.getInlineScanner
(WadEntry entry, Class<BO> type, int objectLength) Retrieves the data of the specified entry and returns it as a deserializing scanner iterator that returns the same object instance with its contents changed.default InputStream
Wad.getInputStream
(WadEntry entry) Retrieves the data of the specified entry from a starting index and returns it as a stream.WadBuffer.getInputStream
(WadEntry entry) WadMap.getInputStream
(WadEntry entry) default Reader
Retrieves a Reader for the specified entry as a decoded stream of characters.default <BO extends BinaryObject>
BinaryObject.Scanner<BO>Wad.getScanner
(WadEntry entry, Class<BO> type, int objectLength) Retrieves the data of the specified entry and returns it as a deserializing scanner iterator that returns independent instances of objects.default String
Wad.getTextData
(WadEntry entry, Charset charset) Retrieves the data of the specified entry as a decoded string of characters.default <TO extends TextObject>
TOWad.getTextDataAs
(WadEntry entry, Charset charset, Class<TO> type) Retrieves the data of the specified entry as an interpreted text-originating object.void
Wad.setEntries
(WadEntry... entryList) Completely replaces the list of entries in this Wad with a completely different set of entries.void
WadBuffer.setEntries
(WadEntry... entryList) void
WadFile.setEntries
(WadEntry... entryList) void
WadMap.setEntries
(WadEntry... entryList) default void
Replaces an entry in the Wad - no content, just descriptor.void
Wad.unmapEntries
(int startIndex, WadEntry... entryList) Replaces a series of WadEntry objects in this Wad, using the provided list of entries as the replacement list.void
WadBuffer.unmapEntries
(int startIndex, WadEntry... entryList) void
WadFile.unmapEntries
(int startIndex, WadEntry... entryList) void
WadMap.unmapEntries
(int startIndex, WadEntry... entryList) -
Uses of WadEntry in net.mtrop.doom.util
Modifier and TypeMethodDescriptionWadEntry[]
WadUtils.WadEntryAccumulator.get()
Gets all of the entries in this accumulator, in the order that they were added to it.static WadEntry[]
WadUtils.getEntriesInNamespace
(Wad wad, String prefix) Finds all entries within a WAD entry namespace.static WadEntry[]
WadUtils.getEntriesInNamespace
(Wad wad, String prefix, Pattern ignorePattern) Finds all entries within a WAD entry namespace.static WadEntry[]
MapUtils.getMapEntries
(Wad wad, int startIndex) Returns the entries in a map, including the header.static WadEntry[]
MapUtils.getMapEntries
(Wad wad, String header) Returns the entries in a map, including the header, if the map is found.Modifier and TypeMethodDescriptionAdds a single entry to the list.Adds a set of entries to the list in the order that they are in the array.static WadUtils.WadEntryAccumulator
WadUtils.withEntries
(WadEntry... entries) Creates a WadEntry accumulator with a set of entries.