📄 bytebuffer.html
字号:
<DD>Appends an array of bytes.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the array to be appended<DT><B>Returns:</B><DD>a reference to this <CODE>ByteBuffer</CODE> object</DL>
</DD>
</DL>
<HR>
<A NAME="append(java.lang.String)"><!-- --></A><H3>
append</H3>
<PRE>
public <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html">ByteBuffer</A> <B>append</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> 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">ByteBuffer</A> <B>append</B>(char 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">ByteBuffer</A> <B>append</B>(<A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html">ByteBuffer</A> 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">ByteBuffer</A> <B>append</B>(int 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">ByteBuffer</A> <B>append</B>(byte 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">ByteBuffer</A> <B>append</B>(float 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">ByteBuffer</A> <B>append</B>(double 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.3/docs/api/java/lang/String.html">String</A> <B>formatDouble</B>(double 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.3/docs/api/java/lang/String.html">String</A> <B>formatDouble</B>(double d, <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html">ByteBuffer</A> 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<DT><B>Returns:</B><DD>the <CODE>String</CODE> representation of the <CODE>double</CODE> if <CODE>d</CODE> is <CODE>null</CODE>. If <CODE>d</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="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>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.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>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.3/docs/api/java/lang/String.html">String</A> <B>toString</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> enc) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/UnsupportedEncodingException.html">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.3/docs/api/java/io/UnsupportedEncodingException.html">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.3/docs/api/java/io/OutputStream.html">OutputStream</A> out) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">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.3/docs/api/java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs.</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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/lowagie/text/pdf/BidiLine.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/lowagie/text/pdf/CCITTG4Encoder.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>
<A HREF="ByteBuffer.html" TARGET="_top"><B>NO FRAMES</B></A>
<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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -