You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Projet_JAVA_P2P_STRI2A/doc/javadoc/tools/BytesArrayTools.html

689 lines
25 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_181) on Mon Apr 13 15:38:50 CEST 2020 -->
<title>BytesArrayTools</title>
<meta name="date" content="2020-04-13">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BytesArrayTools";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/BytesArrayTools.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../tools/Directories.html" title="class in tools"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?tools/BytesArrayTools.html" target="_top">Frames</a></li>
<li><a href="BytesArrayTools.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">tools</div>
<h2 title="Class BytesArrayTools" class="title">Class BytesArrayTools</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>tools.BytesArrayTools</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">BytesArrayTools</span>
extends java.lang.Object</pre>
<div class="block">Helper to manipulate byte[].</div>
<dl>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>1.0</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Louis Royer, Flavien Haas, JS Auge</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#BytesArrayTools--">BytesArrayTools</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#cleanStrings-java.lang.String-">cleanStrings</a></span>(java.lang.String&nbsp;str)</code>
<div class="block">Remove trailing null bytes from string.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#computeStringArraySize-java.lang.String:A-java.lang.String-">computeStringArraySize</a></span>(java.lang.String[]&nbsp;strArray,
java.lang.String&nbsp;separator)</code>
<div class="block">Compute size of string array once converted to byte array with separator</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readByteArray-byte:A-int-int-">readByteArray</a></span>(byte[]&nbsp;src,
int&nbsp;start,
int&nbsp;end)</code>
<div class="block">Read byte Array to byte Array</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readInt-byte:A-int-">readInt</a></span>(byte[]&nbsp;array,
int&nbsp;start)</code>
<div class="block">Read int from a bytearray</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readInt16Bits-byte:A-int-">readInt16Bits</a></span>(byte[]&nbsp;array,
int&nbsp;start)</code>
<div class="block">Read int from a bytearray of 16 bits</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readLong-byte:A-int-">readLong</a></span>(byte[]&nbsp;array,
int&nbsp;start)</code>
<div class="block">Read long from a bytearray</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readString-byte:A-int-int-">readString</a></span>(byte[]&nbsp;array,
int&nbsp;start,
int&nbsp;size)</code>
<div class="block">Read string from byte array</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readString-byte:A-int-java.lang.String-">readString</a></span>(byte[]&nbsp;array,
int&nbsp;start,
java.lang.String&nbsp;endStr)</code>
<div class="block">Read string from byte array</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#readStringArray-byte:A-int-int-java.lang.String-">readStringArray</a></span>(byte[]&nbsp;byteArray,
int&nbsp;start,
int&nbsp;size,
java.lang.String&nbsp;separator)</code>
<div class="block">Read string array from byte array starting at start with size parameter.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write-byte:A-byte:A-int-">write</a></span>(byte[]&nbsp;dst,
byte[]&nbsp;src,
int&nbsp;start)</code>
<div class="block">Write byte Array to byte Array.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write-byte:A-int-int-">write</a></span>(byte[]&nbsp;array,
int&nbsp;start,
int&nbsp;value)</code>
<div class="block">Write int in a bytearray</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write-byte:A-int-long-">write</a></span>(byte[]&nbsp;array,
int&nbsp;start,
long&nbsp;value)</code>
<div class="block">Write long in a bytearray</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write-byte:A-java.lang.String:A-int-java.lang.String-">write</a></span>(byte[]&nbsp;byteArray,
java.lang.String[]&nbsp;strArray,
int&nbsp;start,
java.lang.String&nbsp;separator)</code>
<div class="block">Write a list of string to a byte array.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write-byte:A-java.lang.String-int-">write</a></span>(byte[]&nbsp;array,
java.lang.String&nbsp;str,
int&nbsp;start)</code>
<div class="block">Write a string to a byte array.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write16Bits-byte:A-int-int-">write16Bits</a></span>(byte[]&nbsp;array,
int&nbsp;start,
int&nbsp;value)</code>
<div class="block">Write int in a bytearray 16 bits version</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="BytesArrayTools--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BytesArrayTools</h4>
<pre>public&nbsp;BytesArrayTools()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="write-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;array,
int&nbsp;start,
int&nbsp;value)</pre>
<div class="block">Write int in a bytearray</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array to write</dd>
<dd><code>start</code> - where to begin writting</dd>
<dd><code>value</code> - int to write</dd>
</dl>
</li>
</ul>
<a name="write16Bits-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write16Bits</h4>
<pre>public static&nbsp;void&nbsp;write16Bits(byte[]&nbsp;array,
int&nbsp;start,
int&nbsp;value)
throws <a href="../localException/SizeError.html" title="class in localException">SizeError</a></pre>
<div class="block">Write int in a bytearray 16 bits version</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array to write</dd>
<dd><code>start</code> - where to begin writting</dd>
<dd><code>value</code> - int to write</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../localException/SizeError.html" title="class in localException">SizeError</a></code></dd>
</dl>
</li>
</ul>
<a name="write-byte:A-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;array,
int&nbsp;start,
long&nbsp;value)</pre>
<div class="block">Write long in a bytearray</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array to write</dd>
<dd><code>start</code> - where to begin writting</dd>
<dd><code>value</code> - long to write</dd>
</dl>
</li>
</ul>
<a name="readInt-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readInt</h4>
<pre>public static&nbsp;int&nbsp;readInt(byte[]&nbsp;array,
int&nbsp;start)
throws <a href="../localException/SizeError.html" title="class in localException">SizeError</a></pre>
<div class="block">Read int from a bytearray</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array to read</dd>
<dd><code>start</code> - where to begin reading</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value read as int</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../localException/SizeError.html" title="class in localException">SizeError</a></code></dd>
</dl>
</li>
</ul>
<a name="readInt16Bits-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readInt16Bits</h4>
<pre>public static&nbsp;int&nbsp;readInt16Bits(byte[]&nbsp;array,
int&nbsp;start)</pre>
<div class="block">Read int from a bytearray of 16 bits</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array to read</dd>
<dd><code>start</code> - where to begin reading</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value read as 16 bits int</dd>
</dl>
</li>
</ul>
<a name="readLong-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readLong</h4>
<pre>public static&nbsp;long&nbsp;readLong(byte[]&nbsp;array,
int&nbsp;start)
throws <a href="../localException/SizeError.html" title="class in localException">SizeError</a></pre>
<div class="block">Read long from a bytearray</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - the array to read</dd>
<dd><code>start</code> - where to begin reading</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value read as long</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../localException/SizeError.html" title="class in localException">SizeError</a></code></dd>
</dl>
</li>
</ul>
<a name="cleanStrings-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cleanStrings</h4>
<pre>public static&nbsp;java.lang.String&nbsp;cleanStrings(java.lang.String&nbsp;str)</pre>
<div class="block">Remove trailing null bytes from string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - input string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>str without trailing null bytes</dd>
</dl>
</li>
</ul>
<a name="write-byte:A-java.lang.String:A-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;byteArray,
java.lang.String[]&nbsp;strArray,
int&nbsp;start,
java.lang.String&nbsp;separator)
throws java.lang.InternalError</pre>
<div class="block">Write a list of string to a byte array. String are separated by a separator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>byteArray</code> - array to write</dd>
<dd><code>strArray</code> - string array to read</dd>
<dd><code>start</code> - start position to write in byteArray</dd>
<dd><code>separator</code> - separator to use</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InternalError</code></dd>
</dl>
</li>
</ul>
<a name="readStringArray-byte:A-int-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readStringArray</h4>
<pre>public static&nbsp;java.lang.String[]&nbsp;readStringArray(byte[]&nbsp;byteArray,
int&nbsp;start,
int&nbsp;size,
java.lang.String&nbsp;separator)
throws java.lang.InternalError</pre>
<div class="block">Read string array from byte array starting at start with size parameter.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>byteArray</code> - Array to read</dd>
<dd><code>start</code> - Start position</dd>
<dd><code>size</code> - Size to read</dd>
<dd><code>separator</code> - Separator used</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String array output</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InternalError</code></dd>
</dl>
</li>
</ul>
<a name="computeStringArraySize-java.lang.String:A-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeStringArraySize</h4>
<pre>public static&nbsp;int&nbsp;computeStringArraySize(java.lang.String[]&nbsp;strArray,
java.lang.String&nbsp;separator)</pre>
<div class="block">Compute size of string array once converted to byte array with separator</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>strArray</code> - String Array</dd>
<dd><code>separator</code> - Separator used</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>size</dd>
</dl>
</li>
</ul>
<a name="write-byte:A-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;array,
java.lang.String&nbsp;str,
int&nbsp;start)
throws java.lang.InternalError</pre>
<div class="block">Write a string to a byte array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - Byte Array to write</dd>
<dd><code>str</code> - String to read</dd>
<dd><code>start</code> - Start position in byte array to write</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InternalError</code></dd>
</dl>
</li>
</ul>
<a name="readString-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readString</h4>
<pre>public static&nbsp;java.lang.String&nbsp;readString(byte[]&nbsp;array,
int&nbsp;start,
int&nbsp;size)
throws java.lang.InternalError</pre>
<div class="block">Read string from byte array</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - Byte array to read</dd>
<dd><code>start</code> - start position in byte array</dd>
<dd><code>size</code> - size to read</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String read</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InternalError</code></dd>
</dl>
</li>
</ul>
<a name="readString-byte:A-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readString</h4>
<pre>public static&nbsp;java.lang.String&nbsp;readString(byte[]&nbsp;array,
int&nbsp;start,
java.lang.String&nbsp;endStr)
throws java.lang.InternalError</pre>
<div class="block">Read string from byte array</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - Byte array to read</dd>
<dd><code>start</code> - start position in byte array</dd>
<dd><code>endStr</code> - End string delimiter</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String read</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InternalError</code></dd>
</dl>
</li>
</ul>
<a name="write-byte:A-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;dst,
byte[]&nbsp;src,
int&nbsp;start)</pre>
<div class="block">Write byte Array to byte Array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dst</code> - Destination byte Array</dd>
<dd><code>src</code> - Source byte Array</dd>
<dd><code>start</code> - Start in dest array</dd>
</dl>
</li>
</ul>
<a name="readByteArray-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>readByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;readByteArray(byte[]&nbsp;src,
int&nbsp;start,
int&nbsp;end)
throws <a href="../localException/ProtocolError.html" title="class in localException">ProtocolError</a></pre>
<div class="block">Read byte Array to byte Array</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>src</code> - Source byte Array</dd>
<dd><code>start</code> - Start position in source</dd>
<dd><code>end</code> - End position in source</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Resulting byte array</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../localException/ProtocolError.html" title="class in localException">ProtocolError</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/BytesArrayTools.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../tools/Directories.html" title="class in tools"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?tools/BytesArrayTools.html" target="_top">Frames</a></li>
<li><a href="BytesArrayTools.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>