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

📄 com.jthomas.pop.convert.html

📁 java编写的pop3协议(网络公开代码)
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Sep 02 08:05:40 GMT+00:00 1998 -->
<title>
  Class com.jthomas.pop.Convert
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-com.jthomas.pop.html">This Package</a>  <a href="Package-com.jthomas.pop.html">Previous</a>  <a href="com.jthomas.pop.apop.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class com.jthomas.pop.Convert
</h1>
<pre>
java.lang.Object
   |
   +----com.jthomas.pop.Convert
</pre>
<hr>
<dl>
  <dt> public class <b>Convert</b>
  <dt> extends Object
</dl>
<p>Get the latest version of this and other classes on <a href="http://www.geocities.com/SunsetStrip/Studio/4994/java.html"> Stefano Locati's Java page.</a> <p>Class with a few static methods used by <code>pop3</code> and  <code>apop</code> classes in this package.
<p>
<dl>
  <dt> <b>Version:</b>
  <dd> $Revision: 1.1 $ $Date: 1998/09/02 08:03:09 $
  <dt> <b>Author:</b>
  <dd> Stefano Locati  <a href="mailto:slocati@geocities.com">slocati@geocities.com</a> or  <a href="mailto:stefano.locati@usa.net">stefano.locati@usa.net</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toHexString(byte)"><b>toHexString</b></a>(byte)
  <dd>  Convert a byte into an hexadecimal number.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toHexString(byte[])"><b>toHexString</b></a>(byte[])
  <dd>  Convert a number represented by the given byte array into a hexadecimal number String.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toInt(java.lang.String)"><b>toInt</b></a>(String)
  <dd>  Convert a String into an int, giving 0 as default value.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="toInt(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toInt"><b>toInt</b></a>
<pre>
 public static final int toInt(String s)
</pre>
<dl>
  <dd> Convert a String into an int, giving 0 as default value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - a String to be converted
    <dt> <b>Returns:</b>
    <dd> int value represented by the argument, or 0 if the argument    isn't a valid number.
  </dl></dd>
</dl>
<a name="toHexString(byte)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toHexString"><b>toHexString</b></a>
<pre>
 public static final String toHexString(byte n)
</pre>
<dl>
  <dd> Convert a byte into an hexadecimal number. The output is always lowercase, two digit long in the range <code>00-ff</code>. <p><b>Example:</b> <code>12</code> gives <code>0c</code>,    <code>18</code> gives <code>12</code>,    <code>255</code> gives <code>ff</code>, ...
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> n - a byte value to be converted.
    <dt> <b>Returns:</b>
    <dd> a two digit hexadecimal number.
  </dl></dd>
</dl>
<a name="toHexString(byte[])"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toHexString"><b>toHexString</b></a>
<pre>
 public static final String toHexString(byte n[])
</pre>
<dl>
  <dd> Convert a number represented by the given byte array into a hexadecimal number String. <p><b>Example:</b> <code>{ 12, 22, 16 }</code> gives  <code>0c1610</code>. That means <code>12</code> is <code>0c</code>,  <code>22</code> is <code>16</code>, <code>16</code> is <code>10</code> or, if you prefer all together,<br> <code>12 * 256^2 + 22 * 256^1 + 16 * 256 = 792080</code> gives <code>c1610</code>.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> n - the byte array to be converted.
    <dt> <b>Returns:</b>
    <dd> a hexadecimal String with an even number of digits.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-com.jthomas.pop.html">This Package</a>  <a href="Package-com.jthomas.pop.html">Previous</a>  <a href="com.jthomas.pop.apop.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>

⌨️ 快捷键说明

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