Projet_JAVA_P2P_STRI2A/doc/javadoc/tools/BytesArrayTools.html

689 lines
25 KiB
HTML
Raw Normal View History

2020-04-13 15:43:33 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2020-01-29 14:06:04 +01:00
<!-- NewPage -->
<html lang="fr">
<head>
2020-04-13 15:43:33 +02:00
<!-- Generated by javadoc (1.8.0_181) on Mon Apr 13 15:38:50 CEST 2020 -->
2020-01-29 14:06:04 +01:00
<title>BytesArrayTools</title>
2020-04-13 15:43:33 +02:00
<meta name="date" content="2020-04-13">
2020-01-29 14:06:04 +01:00
<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) {
}
//-->
2020-04-13 15:43:33 +02:00
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};
2020-01-29 14:06:04 +01:00
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";
2020-04-13 15:43:33 +02:00
</script>
2020-01-29 14:06:04 +01:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
2020-04-13 15:43:33 +02:00
<div class="topNav"><a name="navbar.top">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
2020-04-13 15:43:33 +02:00
<a name="navbar.top.firstrow">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<ul class="navList" title="Navigation">
2020-04-13 15:43:33 +02:00
<li><a href="../overview-summary.html">Overview</a></li>
2020-01-29 14:06:04 +01:00
<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">
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
</ul>
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
</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>
2020-04-13 15:43:33 +02:00
<a name="skip.navbar.top">
2020-01-29 14:06:04 +01:00
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
2020-04-13 15:43:33 +02:00
<div class="subTitle">tools</div>
2020-01-29 14:06:04 +01:00
<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>
2020-04-13 15:43:33 +02:00
<br>
2020-01-29 14:06:04 +01:00
<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">
2020-04-13 15:43:33 +02:00
<li class="blockList"><a name="constructor.summary">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<h3>Constructor Summary</h3>
2020-04-13 15:43:33 +02:00
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
2020-01-29 14:06:04 +01:00
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
2020-04-13 15:43:33 +02:00
<th class="colOne" scope="col">Constructor and Description</th>
2020-01-29 14:06:04 +01:00
</tr>
<tr class="altColor">
2020-04-13 15:43:33 +02:00
<td class="colOne"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#BytesArrayTools--">BytesArrayTools</a></span>()</code>&nbsp;</td>
2020-01-29 14:06:04 +01:00
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
2020-04-13 15:43:33 +02:00
<li class="blockList"><a name="method.summary">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<h3>Method Summary</h3>
2020-04-13 15:43:33 +02:00
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
2020-01-29 14:06:04 +01:00
<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>
2020-04-13 15:43:33 +02:00
<th class="colLast" scope="col">Method and Description</th>
2020-01-29 14:06:04 +01:00
</tr>
<tr id="i0" class="altColor">
2020-04-13 15:43:33 +02:00
<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">
2020-01-29 14:06:04 +01:00
<td class="colFirst"><code>static int</code></td>
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
<div class="block">Read int from a bytearray</div>
</td>
</tr>
2020-04-13 15:43:33 +02:00
<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">
2020-01-29 14:06:04 +01:00
<td class="colFirst"><code>static long</code></td>
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
<div class="block">Read long from a bytearray</div>
</td>
</tr>
2020-04-13 15:43:33 +02:00
<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">
2020-01-29 14:06:04 +01:00
<td class="colFirst"><code>static void</code></td>
2020-04-13 15:43:33 +02:00
<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,
2020-01-29 14:06:04 +01:00
int&nbsp;start,
2020-04-13 15:43:33 +02:00
int&nbsp;value)</code>
2020-01-29 14:06:04 +01:00
<div class="block">Write int in a bytearray</div>
</td>
</tr>
2020-04-13 15:43:33 +02:00
<tr id="i11" class="rowColor">
2020-01-29 14:06:04 +01:00
<td class="colFirst"><code>static void</code></td>
2020-04-13 15:43:33 +02:00
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/BytesArrayTools.html#write-byte:A-int-long-">write</a></span>(byte[]&nbsp;array,
2020-01-29 14:06:04 +01:00
int&nbsp;start,
2020-04-13 15:43:33 +02:00
long&nbsp;value)</code>
2020-01-29 14:06:04 +01:00
<div class="block">Write long in a bytearray</div>
</td>
</tr>
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
</table>
<ul class="blockList">
2020-04-13 15:43:33 +02:00
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
2020-04-13 15:43:33 +02:00
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
2020-01-29 14:06:04 +01:00
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
2020-04-13 15:43:33 +02:00
<li class="blockList"><a name="constructor.detail">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<h3>Constructor Detail</h3>
2020-04-13 15:43:33 +02:00
<a name="BytesArrayTools--">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BytesArrayTools</h4>
<pre>public&nbsp;BytesArrayTools()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
2020-04-13 15:43:33 +02:00
<li class="blockList"><a name="method.detail">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<h3>Method Detail</h3>
2020-04-13 15:43:33 +02:00
<a name="write-byte:A-int-int-">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
2020-04-13 15:43:33 +02:00
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;array,
2020-01-29 14:06:04 +01:00
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>
2020-04-13 15:43:33 +02:00
<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-">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
2020-04-13 15:43:33 +02:00
<pre>public static&nbsp;void&nbsp;write(byte[]&nbsp;array,
2020-01-29 14:06:04 +01:00
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>
2020-04-13 15:43:33 +02:00
<a name="readInt-byte:A-int-">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readInt</h4>
2020-04-13 15:43:33 +02:00
<pre>public static&nbsp;int&nbsp;readInt(byte[]&nbsp;array,
2020-01-29 14:06:04 +01:00
int&nbsp;start)
2020-04-13 15:43:33 +02:00
throws <a href="../localException/SizeError.html" title="class in localException">SizeError</a></pre>
2020-01-29 14:06:04 +01:00
<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>
2020-04-13 15:43:33 +02:00
<dd><code><a href="../localException/SizeError.html" title="class in localException">SizeError</a></code></dd>
2020-01-29 14:06:04 +01:00
</dl>
</li>
</ul>
2020-04-13 15:43:33 +02:00
<a name="readInt16Bits-byte:A-int-">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
2020-04-13 15:43:33 +02:00
<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">
2020-01-29 14:06:04 +01:00
<li class="blockList">
<h4>readLong</h4>
2020-04-13 15:43:33 +02:00
<pre>public static&nbsp;long&nbsp;readLong(byte[]&nbsp;array,
2020-01-29 14:06:04 +01:00
int&nbsp;start)
2020-04-13 15:43:33 +02:00
throws <a href="../localException/SizeError.html" title="class in localException">SizeError</a></pre>
2020-01-29 14:06:04 +01:00
<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>
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2020-04-13 15:43:33 +02:00
<div class="bottomNav"><a name="navbar.bottom">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
2020-04-13 15:43:33 +02:00
<a name="navbar.bottom.firstrow">
2020-01-29 14:06:04 +01:00
<!-- -->
</a>
<ul class="navList" title="Navigation">
2020-04-13 15:43:33 +02:00
<li><a href="../overview-summary.html">Overview</a></li>
2020-01-29 14:06:04 +01:00
<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">
2020-04-13 15:43:33 +02:00
<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>
2020-01-29 14:06:04 +01:00
<ul class="navList" id="allclasses_navbar_bottom">
2020-04-13 15:43:33 +02:00
<li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
2020-01-29 14:06:04 +01:00
</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>
2020-04-13 15:43:33 +02:00
<a name="skip.navbar.bottom">
2020-01-29 14:06:04 +01:00
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>