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

📄 bytebuffer.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;str)</PRE><DL><DD>Appends a <CODE>String</CODE> to the buffer. The <CODE>String</CODE> is converted according to the encoding ISO-8859-1.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>str</CODE> - the <CODE>String</CODE> to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL></DD></DL><HR><A NAME="append(char)"><!-- --></A><H3>append</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(char&nbsp;c)</PRE><DL><DD>Appends a <CODE>char</CODE> to the buffer. The <CODE>char</CODE> is converted according to the encoding ISO-8859-1.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the <CODE>char</CODE> to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL></DD></DL><HR><A NAME="append(com.lowagie.text.pdf.ByteBuffer)"><!-- --></A><H3>append</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(<A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A>&nbsp;buf)</PRE><DL><DD>Appends another <CODE>ByteBuffer</CODE> to this buffer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>buf</CODE> - the <CODE>ByteBuffer</CODE> to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL></DD></DL><HR><A NAME="append(int)"><!-- --></A><H3>append</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(int&nbsp;i)</PRE><DL><DD>Appends the string representation of an <CODE>int</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the <CODE>int</CODE> to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL></DD></DL><HR><A NAME="append(byte)"><!-- --></A><H3>append</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(byte&nbsp;b)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="appendHex(byte)"><!-- --></A><H3>appendHex</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>appendHex</B>(byte&nbsp;b)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="append(float)"><!-- --></A><H3>append</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(float&nbsp;i)</PRE><DL><DD>Appends a string representation of a <CODE>float</CODE> according to the Pdf conventions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the <CODE>float</CODE> to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL></DD></DL><HR><A NAME="append(double)"><!-- --></A><H3>append</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A> <B>append</B>(double&nbsp;d)</PRE><DL><DD>Appends a string representation of a <CODE>double</CODE> according to the Pdf conventions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the <CODE>double</CODE> to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL></DD></DL><HR><A NAME="formatDouble(double)"><!-- --></A><H3>formatDouble</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>formatDouble</B>(double&nbsp;d)</PRE><DL><DD>Outputs a <CODE>double</CODE> into a format suitable for the PDF.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - a double<DT><B>Returns:</B><DD>the <CODE>String</CODE> representation of the <CODE>double</CODE></DL></DD></DL><HR><A NAME="formatDouble(double, com.lowagie.text.pdf.ByteBuffer)"><!-- --></A><H3>formatDouble</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>formatDouble</B>(double&nbsp;d,                                  <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html" title="class in com.lowagie.text.pdf">ByteBuffer</A>&nbsp;buf)</PRE><DL><DD>Outputs a <CODE>double</CODE> into a format suitable for the PDF.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - a double<DD><CODE>buf</CODE> - a ByteBuffer<DT><B>Returns:</B><DD>the <CODE>String</CODE> representation of the <CODE>double</CODE> if <CODE>buf</CODE> is <CODE>null</CODE>. If <CODE>buf</CODE> is <B>not</B> <CODE>null</CODE>, then the double is appended directly to the buffer and this methods returns <CODE>null</CODE>.</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD>Sets the size to zero.<P><DD><DL></DL></DD></DL><HR><A NAME="toByteArray()"><!-- --></A><H3>toByteArray</H3><PRE>public byte[] <B>toByteArray</B>()</PRE><DL><DD>Creates a newly allocated byte array. Its size is the current size of this output stream and the valid contents of the buffer have been copied into it.<P><DD><DL><DT><B>Returns:</B><DD>the current contents of this output stream, as a byte array.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the current size of the buffer.<P><DD><DL><DT><B>Returns:</B><DD>the value of the <code>count</code> field, which is the number of valid bytes in this byte buffer.</DL></DD></DL><HR><A NAME="setSize(int)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(int&nbsp;size)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String translated from the buffer's contents.</DL></DD></DL><HR><A NAME="toString(java.lang.String)"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;enc)                throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></PRE><DL><DD>Converts the buffer's contents into a string, translating bytes into characters according to the specified character encoding.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>enc</CODE> - a character-encoding name.<DT><B>Returns:</B><DD>String translated from the buffer's contents.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></CODE> - If the named encoding is not supported.</DL></DD></DL><HR><A NAME="writeTo(java.io.OutputStream)"><!-- --></A><H3>writeTo</H3><PRE>public void <B>writeTo</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)             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>Writes the complete contents of this byte buffer output to the specified output stream argument, as if by calling the output stream's write method using <code>out.write(buf, 0, count)</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream to which to write the data.<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> - if an I/O error occurs.</DL></DD></DL><HR><A NAME="write(int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(int&nbsp;b)           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><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true#write(int)" title="class or interface in java.io">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></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="write(byte[], int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(byte[]&nbsp;b,                  int&nbsp;off,                  int&nbsp;len)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true#write(byte[], int, int)" title="class or interface in java.io">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBuffer()"><!-- --></A><H3>getBuffer</H3><PRE>public byte[] <B>getBuffer</B>()</PRE><DL><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../com/lowagie/text/pdf/CFFFont.html" title="class in com.lowagie.text.pdf"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/lowagie/text/pdf/ByteBuffer.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ByteBuffer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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