protected static class PNGStructView.PNGChunk extends java.lang.Object implements AbstractStructView.StructNode
| Constructor and Description |
|---|
PNGStructView.PNGChunk(PNGStructView.PNGModel model,
java.lang.String id,
long offset,
long size,
byte[] data,
int crc) |
PNGStructView.PNGChunk(PNGStructView.PNGModel model,
java.lang.String id,
long offset,
long size,
java.io.File file,
int crc) |
PNGStructView.PNGChunk(PNGStructView.PNGModel model,
java.lang.String id,
long offset,
long size,
int crc) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
java.io.File |
getFile()
If the node is file based, returns the file otherwise returns null.
|
java.lang.String |
getId() |
int |
getIndexInParent()
Returns the index of the node in its parent.
|
java.lang.String |
getName() |
long |
getOffset() |
byte[] |
getRawData(long offset,
int len) |
java.util.List<org.monte.media.binary.BinaryPanel.Highlight> |
getRawDataHighlights() |
long |
getSize() |
org.monte.media.binary.StructTableModel |
getStructTableModel() |
boolean |
hasRawData() |
void |
setIndexInParent(int cc) |
java.lang.String |
toString() |
public PNGStructView.PNGChunk(PNGStructView.PNGModel model, java.lang.String id, long offset, long size, int crc)
public PNGStructView.PNGChunk(PNGStructView.PNGModel model, java.lang.String id, long offset, long size, byte[] data, int crc)
public PNGStructView.PNGChunk(PNGStructView.PNGModel model, java.lang.String id, long offset, long size, java.io.File file, int crc)
public byte[] getRawData(long offset,
int len)
getRawData in interface AbstractStructView.StructNodepublic java.util.List<org.monte.media.binary.BinaryPanel.Highlight> getRawDataHighlights()
getRawDataHighlights in interface AbstractStructView.StructNodepublic long getSize()
getSize in interface AbstractStructView.StructNodepublic long getOffset()
getOffset in interface AbstractStructView.StructNodepublic java.lang.String getName()
getName in interface AbstractStructView.StructNodepublic java.lang.String getId()
getId in interface AbstractStructView.StructNodepublic java.lang.String getDescription()
getDescription in interface AbstractStructView.StructNodepublic org.monte.media.binary.StructTableModel getStructTableModel()
getStructTableModel in interface AbstractStructView.StructNodepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getIndexInParent()
AbstractStructView.StructNodegetIndexInParent in interface AbstractStructView.StructNodepublic void setIndexInParent(int cc)
public boolean hasRawData()
hasRawData in interface AbstractStructView.StructNodepublic java.io.File getFile()
AbstractStructView.StructNodegetFile in interface AbstractStructView.StructNode