var methods = {"i0":9,"i1":10,"i2":9,"i3":10,"i4":9,"i5":10,"i6":10,"i7":9,"i8":9,"i9":9,"i10":9,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":9,"i19":9,"i20":10,"i21":10,"i22":10};
<li><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet"><spanclass="typeNameLink">Next Class</span></a></li>
<pre>public class <spanclass="typeNameLabel">PacketLoader</span>
extends java.lang.Object</pre>
<divclass="block">This class provides the ability to load and save <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>
to <code>InputStream</code> and <code>OutputStream</code>.
Packets can have contents checking support using <code>DigestProvider</code>.</div>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getPacketSize-com.captainalm.lib.calmnet.packet.IPacket-boolean-boolean-">getPacketSize</a></span>(<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean includeInformation,
boolean ignoreDigest)</code>
<divclass="block">Gets the total size of a written packet in bytes.</div>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)</code>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream.</div>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)</code>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from a byte array (No digest support).</div>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)</code>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream (No digest support).</div>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)</code>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream.</div>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)</code>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream (No digest support).</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean writeInformation)</code>
<divclass="block">Writes a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to an output stream (No digest support).</div>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacketNoDigest-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacketNoDigest</a></span>(<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean writeInformation)</code>
<divclass="block">Returns a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to a byte array (No digest support).</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean writeInformation)</code>
<divclass="block">Writes a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to an output stream.</div>
<divclass="block">Constructs a new Packet loader instance.
If using a digest provider, use <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#PacketLoader-com.captainalm.lib.stdcrypt.digest.DigestProvider-"><code>PacketLoader(DigestProvider)</code></a></div>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> readPacketNoDigest(byte[] arrayIn,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)
throws <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from a byte array (No digest support).
If the information parameter is null, this is obtained as part of the reading.
NOTE: The <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--"><code>getHashProvider()</code></a> for digests is NOT supported and no digest is expected for these packets.</div>
<dd><code>arrayIn</code> - The byte array for reading.</dd>
<dd><code>factory</code> - The <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a> to use to generate packets.</dd>
<dd><code>information</code> - The protocol information or null.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The loaded packet or null.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The arrayIn or the factory is null.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> readPacket(java.io.InputStream inputStream,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream.
If the information parameter is null, this is obtained as part of the reading.</div>
<dd><code>inputStream</code> - The input stream for reading.</dd>
<dd><code>factory</code> - The <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a> to use to generate packets.</dd>
<dd><code>information</code> - The protocol information or null.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The loaded packet or null.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The inputStream or the factory is null.</dd>
<dd><code>java.io.IOException</code> - A stream exception occurs.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> readPacketNoDigest(java.io.InputStream inputStream,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream (No digest support).
If the information parameter is null, this is obtained as part of the reading.
NOTE: The <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--"><code>getHashProvider()</code></a> for digests is NOT supported and no digest is expected for these packets.</div>
<dd><code>inputStream</code> - The input stream for reading.</dd>
<dd><code>factory</code> - The <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a> to use to generate packets.</dd>
<dd><code>information</code> - The protocol information or null.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The loaded packet or null.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The inputStream or the factory is null.</dd>
<dd><code>java.io.IOException</code> - A stream exception occurs.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> readStreamedPacket(java.io.InputStream inputStream,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream.
If the information parameter is null, this is obtained as part of the reading.
NOTE: The packet may be an <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> if no stream packet is available for that protocol.</div>
<dd><code>inputStream</code> - The input stream for reading.</dd>
<dd><code>factory</code> - The <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a> to use to generate packets.</dd>
<dd><code>information</code> - The protocol information or null.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The loaded packet or null.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The inputStream or the factory is null.</dd>
<dd><code>java.io.IOException</code> - A stream exception occurs.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> readStreamedPacketNoDigest(java.io.InputStream inputStream,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet">PacketProtocolInformation</a> information)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Reads a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream (No digest support).
If the information parameter is null, this is obtained as part of the reading.
NOTE: The packet may be an <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> if no stream packet is available for that protocol.
NOTE: The <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--"><code>getHashProvider()</code></a> for digests is NOT supported and no digest is expected for these packets.</div>
<dd><code>inputStream</code> - The input stream for reading.</dd>
<dd><code>factory</code> - The <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a> to use to generate packets.</dd>
<dd><code>information</code> - The protocol information or null.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The loaded packet or null.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - The inputStream or the factory is null.</dd>
<dd><code>java.io.IOException</code> - A stream exception occurs.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<pre>public byte[] writePacketNoDigest(<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean writeInformation)
throws <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Returns a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to a byte array (No digest support).
NOTE: The <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--"><code>getHashProvider()</code></a> for digests is NOT supported and no digest is expected for these packets.</div>
<dd><code>packet</code> - The packet to save.</dd>
<dd><code>writeInformation</code> - Write the <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketProtocolInformation</code></a> to the beginning of the array.</dd>
<dd><code>java.lang.NullPointerException</code> - A parameter is null.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean writeInformation)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Writes a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to an output stream (No digest support).</div>
<dd><code>outputStream</code> - The output stream for writing.</dd>
<dd><code>packet</code> - The packet to save.</dd>
<dd><code>writeInformation</code> - Write the <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketProtocolInformation</code></a> to the stream.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - A parameter is null.</dd>
<dd><code>java.io.IOException</code> - A stream exception occurs.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean writeInformation)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Writes a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to an output stream.
NOTE: The <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--"><code>getHashProvider()</code></a> for digests is NOT supported and no digest is expected for these packets.</div>
<dd><code>outputStream</code> - The output stream for writing.</dd>
<dd><code>packet</code> - The packet to save.</dd>
<dd><code>writeInformation</code> - Write the <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketProtocolInformation</code></a> to the stream.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - A parameter is null.</dd>
<dd><code>java.io.IOException</code> - A stream exception occurs.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
<divclass="block">Reads a byte from an <code>InputStream</code>.
See also: <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteIntegerFromInputStream-java.io.InputStream-"><code>readByteIntegerFromInputStream(InputStream)</code></a>.</div>
<divclass="block">Reads a byte (In int form) from an <code>InputStream</code>.
See also: <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteFromInputStream-java.io.InputStream-"><code>readByteFromInputStream(InputStream)</code></a>.</div>
<pre>public int getPacketSize(<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packet,
boolean includeInformation,
boolean ignoreDigest)
throws <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Gets the total size of a written packet in bytes.</div>
<dd><code>packet</code> - The packet to check.</dd>
<dd><code>includeInformation</code> - If the 2 byte information header is included.</dd>
<dd><code>ignoreDigest</code> - If the digest length should be ignored if available.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The size of the packet in bytes.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - packet is null.</dd>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - A Packet Exception has occurred.</dd>
<li><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html"title="class in com.captainalm.lib.calmnet.packet"><spanclass="typeNameLink">Next Class</span></a></li>