📄 tiffdirectory.html
字号:
<DD>The default constructor.<P></DL><HR><A NAME="TIFFDirectory(com.lowagie.text.pdf.RandomAccessFileOrArray, int)"><!-- --></A><H3>TIFFDirectory</H3><PRE>public <B>TIFFDirectory</B>(<A HREF="../../../../../com/lowagie/text/pdf/RandomAccessFileOrArray.html" title="class in com.lowagie.text.pdf">RandomAccessFileOrArray</A> stream, int directory) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Constructs a TIFFDirectory from a SeekableStream. The directory parameter specifies which directory to read from the linked list present in the stream; directory 0 is normally read but it is possible to store multiple images in a single TIFF file by maintaining multiple directories.<P><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - a SeekableStream to read from.<DD><CODE>directory</CODE> - the index of the directory to read.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DL><HR><A NAME="TIFFDirectory(com.lowagie.text.pdf.RandomAccessFileOrArray, long, int)"><!-- --></A><H3>TIFFDirectory</H3><PRE>public <B>TIFFDirectory</B>(<A HREF="../../../../../com/lowagie/text/pdf/RandomAccessFileOrArray.html" title="class in com.lowagie.text.pdf">RandomAccessFileOrArray</A> stream, long ifd_offset, int directory) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Constructs a TIFFDirectory by reading a SeekableStream. The ifd_offset parameter specifies the stream offset from which to begin reading; this mechanism is sometimes used to store private IFDs within a TIFF file that are not part of the normal sequence of IFDs.<P><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - a SeekableStream to read from.<DD><CODE>ifd_offset</CODE> - the long byte offset of the directory.<DD><CODE>directory</CODE> - the index of the directory to read beyond the one at the current stream offset; zero indicates the IFD at the current offset.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="isValidEndianTag(int)"><!-- --></A><H3>isValidEndianTag</H3><PRE>private static boolean <B>isValidEndianTag</B>(int endian)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="initialize(com.lowagie.text.pdf.RandomAccessFileOrArray)"><!-- --></A><H3>initialize</H3><PRE>private void <B>initialize</B>(<A HREF="../../../../../com/lowagie/text/pdf/RandomAccessFileOrArray.html" title="class in com.lowagie.text.pdf">RandomAccessFileOrArray</A> stream) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="getNumEntries()"><!-- --></A><H3>getNumEntries</H3><PRE>public int <B>getNumEntries</B>()</PRE><DL><DD>Returns the number of directory entries.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getField(int)"><!-- --></A><H3>getField</H3><PRE>public <A HREF="../../../../../com/lowagie/text/pdf/codec/TIFFField.html" title="class in com.lowagie.text.pdf.codec">TIFFField</A> <B>getField</B>(int tag)</PRE><DL><DD>Returns the value of a given tag as a TIFFField, or null if the tag is not present.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isTagPresent(int)"><!-- --></A><H3>isTagPresent</H3><PRE>public boolean <B>isTagPresent</B>(int tag)</PRE><DL><DD>Returns true if a tag appears in the directory.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getTags()"><!-- --></A><H3>getTags</H3><PRE>public int[] <B>getTags</B>()</PRE><DL><DD>Returns an ordered array of ints indicating the tag values.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFields()"><!-- --></A><H3>getFields</H3><PRE>public <A HREF="../../../../../com/lowagie/text/pdf/codec/TIFFField.html" title="class in com.lowagie.text.pdf.codec">TIFFField</A>[] <B>getFields</B>()</PRE><DL><DD>Returns an array of TIFFFields containing all the fields in this directory.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsByte(int, int)"><!-- --></A><H3>getFieldAsByte</H3><PRE>public byte <B>getFieldAsByte</B>(int tag, int index)</PRE><DL><DD>Returns the value of a particular index of a given tag as a byte. The caller is responsible for ensuring that the tag is present and has type TIFFField.TIFF_SBYTE, TIFF_BYTE, or TIFF_UNDEFINED.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsByte(int)"><!-- --></A><H3>getFieldAsByte</H3><PRE>public byte <B>getFieldAsByte</B>(int tag)</PRE><DL><DD>Returns the value of index 0 of a given tag as a byte. The caller is responsible for ensuring that the tag is present and has type TIFFField.TIFF_SBYTE, TIFF_BYTE, or TIFF_UNDEFINED.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsLong(int, int)"><!-- --></A><H3>getFieldAsLong</H3><PRE>public long <B>getFieldAsLong</B>(int tag, int index)</PRE><DL><DD>Returns the value of a particular index of a given tag as a long. The caller is responsible for ensuring that the tag is present and has type TIFF_BYTE, TIFF_SBYTE, TIFF_UNDEFINED, TIFF_SHORT, TIFF_SSHORT, TIFF_SLONG or TIFF_LONG.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsLong(int)"><!-- --></A><H3>getFieldAsLong</H3><PRE>public long <B>getFieldAsLong</B>(int tag)</PRE><DL><DD>Returns the value of index 0 of a given tag as a long. The caller is responsible for ensuring that the tag is present and has type TIFF_BYTE, TIFF_SBYTE, TIFF_UNDEFINED, TIFF_SHORT, TIFF_SSHORT, TIFF_SLONG or TIFF_LONG.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsFloat(int, int)"><!-- --></A><H3>getFieldAsFloat</H3><PRE>public float <B>getFieldAsFloat</B>(int tag, int index)</PRE><DL><DD>Returns the value of a particular index of a given tag as a float. The caller is responsible for ensuring that the tag is present and has numeric type (all but TIFF_UNDEFINED and TIFF_ASCII).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsFloat(int)"><!-- --></A><H3>getFieldAsFloat</H3><PRE>public float <B>getFieldAsFloat</B>(int tag)</PRE><DL><DD>Returns the value of index 0 of a given tag as a float. The caller is responsible for ensuring that the tag is present and has numeric type (all but TIFF_UNDEFINED and TIFF_ASCII).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsDouble(int, int)"><!-- --></A><H3>getFieldAsDouble</H3><PRE>public double <B>getFieldAsDouble</B>(int tag, int index)</PRE><DL><DD>Returns the value of a particular index of a given tag as a double. The caller is responsible for ensuring that the tag is present and has numeric type (all but TIFF_UNDEFINED and TIFF_ASCII).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFieldAsDouble(int)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -