public class ResolutionBox extends JP2Box
CaptureResolutionBox,
DDResolutionBox_bytesRead, associations, DESCRIPTION_NAME, startBytesRead_boxHeader, _dstrm, _module, _parentBox, _raf, _repInfo, bytesLeft, filePos, hasBoxes| Constructor and Description |
|---|
ResolutionBox(RandomAccessFile raf,
BoxHolder parent)
Constructor with superbox.
|
| Modifier and Type | Method and Description |
|---|---|
static Rational |
convertToRational(int num,
int denom,
int exp) |
protected String |
getSelfPropName()
Returns the name of the Box.
|
static Property |
makeResolutionProperty(String name,
int num,
int denom,
int exp) |
boolean |
readBox()
Reads the box, putting appropriate information in
the RepInfo object.
|
addAssociation, boxMaker, emptyBox, finalizeBytesRead, getBytesRead, getLength, getSelfPropDesc, init, initBytesRead, makeAssocProperty, selfDescProperty, setBoxHeader, setDataInputStream, setModule, setRandomAccessFile, setRepInfo, skipBox, wrongBoxContext, wrongBoxSizegetFilePos, hasNext, next, remove, superboxOverrun, superboxUnderrunclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ResolutionBox(RandomAccessFile raf, BoxHolder parent)
parent - parent superbox of this boxpublic boolean readBox()
throws IOException
JP2BoxreadBox is called.
Thus, the header of the box must already have been read.
readBox must completely consume the
box, so that the next byte to be read by the
DataInputStream is the FF byte of the next Box.
The number of bytes read must be placed in _bytesRead.readBox in class JP2BoxIOExceptionpublic static Property makeResolutionProperty(String name, int num, int denom, int exp)
public static Rational convertToRational(int num, int denom, int exp)
protected String getSelfPropName()
getSelfPropName in class JP2BoxCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.