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

📄 bytebuffer.html

📁 java编程java编程java编程java编程java编程java编程java编程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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>&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">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">ByteBuffer</A> <B>append</B>(<A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html">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">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">ByteBuffer</A> <B>append</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">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">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.3/docs/api/java/lang/String.html">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.3/docs/api/java/lang/String.html">String</A> <B>formatDouble</B>(double&nbsp;d,                                  <A HREF="../../../../com/lowagie/text/pdf/ByteBuffer.html">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<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>&nbsp;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>&nbsp;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>&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/BidiLine.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<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>  &nbsp;
&nbsp;<A HREF="ByteBuffer.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 + -