⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pdfobject.html

📁 java编程java编程java编程java编程java编程java编程java编程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="PdfObject(int, java.lang.String)"><!-- --></A><H3>
PdfObject</H3>
<PRE>
protected <B>PdfObject</B>(int&nbsp;type,                    <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;content)</PRE>
<DL>
<DD>Constructs a <CODE>PdfObject</CODE> of a certain <VAR>type</VAR> with a certain <VAR>content</VAR>.
<P>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - type of the new <CODE>PdfObject</CODE><DD><CODE>content</CODE> - content of the new <CODE>PdfObject</CODE> as a <CODE>String</CODE>.</DL>
<HR>

<A NAME="PdfObject(int, byte[])"><!-- --></A><H3>
PdfObject</H3>
<PRE>
protected <B>PdfObject</B>(int&nbsp;type,                    byte[]&nbsp;bytes)</PRE>
<DL>
<DD>Constructs a <CODE>PdfObject</CODE> of a certain <VAR>type</VAR> with a certain <VAR>content</VAR>.
<P>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - type of the new <CODE>PdfObject</CODE><DD><CODE>bytes</CODE> - content of the new <CODE>PdfObject</CODE> as an array of <CODE>byte</CODE>.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="toPdf(com.lowagie.text.pdf.PdfWriter)"><!-- --></A><H3>
toPdf</H3>
<PRE>
public byte[] <B>toPdf</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A>&nbsp;writer)</PRE>
<DL>
<DD>Returns the PDF representation of this <CODE>PdfObject</CODE> as an array of <CODE>byte</CODE>s.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an array of <CODE>byte</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="pdfLength()"><!-- --></A><H3>
pdfLength</H3>
<PRE>
public int <B>pdfLength</B>()</PRE>
<DL>
<DD>Returns the length of the PDF representation of the <CODE>PdfObject</CODE>. <P> In some cases, namely for <CODE>PdfString</CODE> and <CODE>PdfStream</CODE>, this method differs from the method <CODE>length</CODE> because <CODE>length</CODE> returns the length of the actual content of the <CODE>PdfObject</CODE>.</P> <P> Remark: the actual content of an object is in most cases identical to its representation. The following statement is always true: length() &gt;= pdfLength().</P>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a length</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE>
<DL>
<DD>Returns the <CODE>String</CODE>-representation of this <CODE>PdfObject</CODE>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a <CODE>String</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="length()"><!-- --></A><H3>
length</H3>
<PRE>
public int <B>length</B>()</PRE>
<DL>
<DD>Returns the length of the actual content of the <CODE>PdfObject</CODE>. <P> In some cases, namely for <CODE>PdfString</CODE> and <CODE>PdfStream</CODE>, this method differs from the method <CODE>pdfLength</CODE> because <CODE>pdfLength</CODE> returns the length of the PDF representation of the object, not of the actual content as does the method <CODE>length</CODE>.</P> <P> Remark: the actual content of an object is in some cases identical to its representation. The following statement is always true: length() &gt;= pdfLength().</P>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a length</DL>
</DD>
</DL>
<HR>

<A NAME="setContent(java.lang.String)"><!-- --></A><H3>
setContent</H3>
<PRE>
protected void <B>setContent</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;content)</PRE>
<DL>
<DD>Changes the content of this <CODE>PdfObject</CODE>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the new content of this <CODE>PdfObject</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="type()"><!-- --></A><H3>
type</H3>
<PRE>
public int <B>type</B>()</PRE>
<DL>
<DD>Returns the type of this <CODE>PdfObject</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a type</DL>
</DD>
</DL>
<HR>

<A NAME="isNull()"><!-- --></A><H3>
isNull</H3>
<PRE>
public boolean <B>isNull</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfNull</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isBoolean()"><!-- --></A><H3>
isBoolean</H3>
<PRE>
public boolean <B>isBoolean</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfBoolean</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isNumber()"><!-- --></A><H3>
isNumber</H3>
<PRE>
public boolean <B>isNumber</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfNumber</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isString()"><!-- --></A><H3>
isString</H3>
<PRE>
public boolean <B>isString</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfString</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isName()"><!-- --></A><H3>
isName</H3>
<PRE>
public boolean <B>isName</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfName</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isArray()"><!-- --></A><H3>
isArray</H3>
<PRE>
public boolean <B>isArray</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfArray</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isDictionary()"><!-- --></A><H3>
isDictionary</H3>
<PRE>
public boolean <B>isDictionary</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfDictionary</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isStream()"><!-- --></A><H3>
isStream</H3>
<PRE>
public boolean <B>isStream</B>()</PRE>
<DL>
<DD>Checks if this <CODE>PdfObject</CODE> is of the type <CODE>PdfStream</CODE>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> or <CODE>false</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/lowagie/text/pdf/PdfNumber.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/lowagie/text/pdf/PdfOutline.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="PdfObject.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -