blob: c430631856c8c1cb2515567ae98abef0fca8539a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_192) on Sun Feb 24 18:57:20 CET 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CompositeByteArray (Apache MINA 2.0.20 API Documentation)</title>
<meta name="date" content="2019-02-24">
<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="CompositeByteArray (Apache MINA 2.0.20 API Documentation)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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/CompositeByteArray.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-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/mina/util/byteaccess/ByteArrayPool.html" title="class in org.apache.mina.util.byteaccess"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mina/util/byteaccess/CompositeByteArray.html" target="_top">Frames</a></li>
<li><a href="CompositeByteArray.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><a href="#nested.class.summary">Nested</a>&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">org.apache.mina.util.byteaccess</div>
<h2 title="Class CompositeByteArray" class="title">Class CompositeByteArray</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mina.util.byteaccess.CompositeByteArray</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>, <a href="../../../../../org/apache/mina/util/byteaccess/IoAbsoluteReader.html" title="interface in org.apache.mina.util.byteaccess">IoAbsoluteReader</a>, <a href="../../../../../org/apache/mina/util/byteaccess/IoAbsoluteWriter.html" title="interface in org.apache.mina.util.byteaccess">IoAbsoluteWriter</a></dd>
</dl>
<hr>
<br>
<pre>public final class <span class="typeNameLabel">CompositeByteArray</span>
extends <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">A ByteArray composed of other ByteArrays. Optimized for fast relative access
via cursors. Absolute access methods are provided, but may perform poorly.
TODO: Write about laziness of cursor implementation - how movement doesn't
happen until actual get/put.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="http://mina.apache.org">Apache MINA Project</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess">CompositeByteArray.CursorListener</a></span></code>
<div class="block">Allows for efficient detection of component boundaries when using a cursor.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.mina.util.byteaccess.ByteArray">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.mina.util.byteaccess.<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></h3>
<code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a></code></li>
</ul>
</li>
</ul>
<!-- ======== 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="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#CompositeByteArray--">CompositeByteArray</a></span>()</code>
<div class="block">Creates a new instance of CompositeByteArray.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#CompositeByteArray-org.apache.mina.util.byteaccess.ByteArrayFactory-">CompositeByteArray</a></span>(<a href="../../../../../org/apache/mina/util/byteaccess/ByteArrayFactory.html" title="interface in org.apache.mina.util.byteaccess">ByteArrayFactory</a>&nbsp;byteArrayFactory)</code>
<div class="block">Creates a new instance of CompositeByteArray.</div>
</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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#addFirst-org.apache.mina.util.byteaccess.ByteArray-">addFirst</a></span>(<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;ba)</code>
<div class="block">Adds the specified <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> to the first
position in the list</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#addLast-org.apache.mina.util.byteaccess.ByteArray-">addLast</a></span>(<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;ba)</code>
<div class="block">Adds the specified <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> to the end of the list</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#cursor--">cursor</a></span>()</code></td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#cursor-org.apache.mina.util.byteaccess.CompositeByteArray.CursorListener-">cursor</a></span>(<a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess">CompositeByteArray.CursorListener</a>&nbsp;listener)</code>
<div class="block">Get a cursor starting at index 0 (which may not be the start of the
array) and with the given listener.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#cursor-int-">cursor</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#cursor-int-org.apache.mina.util.byteaccess.CompositeByteArray.CursorListener-">cursor</a></span>(int&nbsp;index,
<a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess">CompositeByteArray.CursorListener</a>&nbsp;listener)</code>
<div class="block">Get a cursor starting at the given index and with the given listener.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;other)</code>
<div class="block">A ByteArray is equal to another ByteArray if they start and end at the
same index, have the same byte order, and contain the same bytes at each
index.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#first--">first</a></span>()</code></td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#free--">free</a></span>()</code>
<div class="block">Remove any resources associated with this object.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#get-int-">get</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#get-int-org.apache.mina.core.buffer.IoBuffer-">get</a></span>(int&nbsp;index,
<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&nbsp;bb)</code>
<div class="block">Gets enough bytes to fill the <tt>IoBuffer</tt> from the given index.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>char</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getChar-int-">getChar</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getDouble-int-">getDouble</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getFirst--">getFirst</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getFloat-int-">getFloat</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getInt-int-">getInt</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getIoBuffers--">getIoBuffers</a></span>()</code></td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getLong-int-">getLong</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getShort-int-">getShort</a></span>(int&nbsp;index)</code></td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#getSingleIoBuffer--">getSingleIoBuffer</a></span>()</code></td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#hashCode--">hashCode</a></span>()</code></td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#last--">last</a></span>()</code></td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#length--">length</a></span>()</code></td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/nio/ByteOrder.html?is-external=true" title="class or interface in java.nio">ByteOrder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#order--">order</a></span>()</code></td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#order-java.nio.ByteOrder-">order</a></span>(<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/nio/ByteOrder.html?is-external=true" title="class or interface in java.nio">ByteOrder</a>&nbsp;order)</code>
<div class="block">Set the byte order of the array.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#put-int-byte-">put</a></span>(int&nbsp;index,
byte&nbsp;b)</code>
<div class="block">Puts a <code>byte</code> at the given index.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#put-int-org.apache.mina.core.buffer.IoBuffer-">put</a></span>(int&nbsp;index,
<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&nbsp;bb)</code>
<div class="block">Puts bytes from the <code>IoBuffer</code> at the given index.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#putChar-int-char-">putChar</a></span>(int&nbsp;index,
char&nbsp;c)</code>
<div class="block">Puts a <code>char</code> at the given index.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#putDouble-int-double-">putDouble</a></span>(int&nbsp;index,
double&nbsp;d)</code>
<div class="block">Puts a <code>double</code> at the given index.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#putFloat-int-float-">putFloat</a></span>(int&nbsp;index,
float&nbsp;f)</code>
<div class="block">Puts a <code>float</code> at the given index.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#putInt-int-int-">putInt</a></span>(int&nbsp;index,
int&nbsp;i)</code>
<div class="block">Puts an <code>int</code> at the given index.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#putLong-int-long-">putLong</a></span>(int&nbsp;index,
long&nbsp;l)</code>
<div class="block">Puts a <code>long</code> at the given index.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#putShort-int-short-">putShort</a></span>(int&nbsp;index,
short&nbsp;s)</code>
<div class="block">Puts a <code>short</code> at the given index.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#removeFirst--">removeFirst</a></span>()</code>
<div class="block">Remove the first <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> in the list</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#removeLast--">removeLast</a></span>()</code>
<div class="block">Removes the last <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> in the list</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#removeTo-int-">removeTo</a></span>(int&nbsp;index)</code>
<div class="block">Remove component <code>ByteArray</code>s to the given index (splitting
them if necessary) and returning them in a single <code>ByteArray</code>.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.html#slice-int-int-">slice</a></span>(int&nbsp;index,
int&nbsp;length)</code>
<div class="block">Creates an array with a view of part of this array.</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.<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></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="CompositeByteArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CompositeByteArray</h4>
<pre>public&nbsp;CompositeByteArray()</pre>
<div class="block">Creates a new instance of CompositeByteArray.</div>
</li>
</ul>
<a name="CompositeByteArray-org.apache.mina.util.byteaccess.ByteArrayFactory-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CompositeByteArray</h4>
<pre>public&nbsp;CompositeByteArray(<a href="../../../../../org/apache/mina/util/byteaccess/ByteArrayFactory.html" title="interface in org.apache.mina.util.byteaccess">ByteArrayFactory</a>&nbsp;byteArrayFactory)</pre>
<div class="block">Creates a new instance of CompositeByteArray.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>byteArrayFactory</code> - The factory used to create the ByteArray objects</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getFirst--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;getFirst()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the first <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> in the list</dd>
</dl>
</li>
</ul>
<a name="addFirst-org.apache.mina.util.byteaccess.ByteArray-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addFirst</h4>
<pre>public&nbsp;void&nbsp;addFirst(<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;ba)</pre>
<div class="block">Adds the specified <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> to the first
position in the list</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ba</code> - The ByteArray to add to the list</dd>
</dl>
</li>
</ul>
<a name="removeFirst--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeFirst</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;removeFirst()</pre>
<div class="block">Remove the first <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> in the list</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The first ByteArray in the list</dd>
</dl>
</li>
</ul>
<a name="removeTo-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeTo</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;removeTo(int&nbsp;index)</pre>
<div class="block">Remove component <code>ByteArray</code>s to the given index (splitting
them if necessary) and returning them in a single <code>ByteArray</code>.
The caller is responsible for freeing the returned object.
TODO: Document free behaviour more thoroughly.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index from where we will remove bytes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The resulting byte aaay</dd>
</dl>
</li>
</ul>
<a name="addLast-org.apache.mina.util.byteaccess.ByteArray-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addLast</h4>
<pre>public&nbsp;void&nbsp;addLast(<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;ba)</pre>
<div class="block">Adds the specified <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> to the end of the list</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ba</code> - The ByteArray to add to the end of the list</dd>
</dl>
</li>
</ul>
<a name="removeLast--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeLast</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;removeLast()</pre>
<div class="block">Removes the last <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray</code></a> in the list</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The ByteArray that was removed</dd>
</dl>
</li>
</ul>
<a name="free--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>free</h4>
<pre>public&nbsp;void&nbsp;free()</pre>
<div class="block">Remove any resources associated with this object. Using the object after
this method is called may result in undefined behaviour.</div>
</li>
</ul>
<a name="getIoBuffers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIoBuffers</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&gt;&nbsp;getIoBuffers()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the sequence of <code>IoBuffer</code>s that back this array.
Compared to <code>getSingleIoBuffer()</code>, this method should be
relatively efficient for all implementations.</dd>
</dl>
</li>
</ul>
<a name="getSingleIoBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSingleIoBuffer</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&nbsp;getSingleIoBuffer()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a single <code>IoBuffer</code> that backs this array. Some
implementations may initially have data split across multiple buffers, so
calling this method may require a new buffer to be allocated and
populated.</dd>
</dl>
</li>
</ul>
<a name="cursor--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cursor</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a>&nbsp;cursor()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a cursor starting at index 0 (which may not be the start of the array).</dd>
</dl>
</li>
</ul>
<a name="cursor-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cursor</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a>&nbsp;cursor(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting point</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a cursor starting at the given index.</dd>
</dl>
</li>
</ul>
<a name="cursor-org.apache.mina.util.byteaccess.CompositeByteArray.CursorListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cursor</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a>&nbsp;cursor(<a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess">CompositeByteArray.CursorListener</a>&nbsp;listener)</pre>
<div class="block">Get a cursor starting at index 0 (which may not be the start of the
array) and with the given listener.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - The listener to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new <a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess"><code>ByteArray.Cursor</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="cursor-int-org.apache.mina.util.byteaccess.CompositeByteArray.CursorListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cursor</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.Cursor.html" title="interface in org.apache.mina.util.byteaccess">ByteArray.Cursor</a>&nbsp;cursor(int&nbsp;index,
<a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess">CompositeByteArray.CursorListener</a>&nbsp;listener)</pre>
<div class="block">Get a cursor starting at the given index and with the given listener.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position of the array to start the Cursor at</dd>
<dd><code>listener</code> - The listener for the Cursor that is returned</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The created Cursor</dd>
</dl>
</li>
</ul>
<a name="slice-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>slice</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a>&nbsp;slice(int&nbsp;index,
int&nbsp;length)</pre>
<div class="block">Creates an array with a view of part of this array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dd><code>length</code> - The number of bytes to copy</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The ByteArray that is a view on the original array</dd>
</dl>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;byte&nbsp;get(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <tt>byte</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="put-int-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;void&nbsp;put(int&nbsp;index,
byte&nbsp;b)</pre>
<div class="block">Puts a <code>byte</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>b</code> - The byte to put</dd>
</dl>
</li>
</ul>
<a name="get-int-org.apache.mina.core.buffer.IoBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;void&nbsp;get(int&nbsp;index,
<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&nbsp;bb)</pre>
<div class="block">Gets enough bytes to fill the <tt>IoBuffer</tt> from the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dd><code>bb</code> - The IoBuffer that will be filled with the bytes</dd>
</dl>
</li>
</ul>
<a name="put-int-org.apache.mina.core.buffer.IoBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;void&nbsp;put(int&nbsp;index,
<a href="../../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer">IoBuffer</a>&nbsp;bb)</pre>
<div class="block">Puts bytes from the <code>IoBuffer</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>bb</code> - The bytes to put</dd>
</dl>
</li>
</ul>
<a name="first--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>first</h4>
<pre>public&nbsp;int&nbsp;first()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index of the first byte that can be accessed.</dd>
</dl>
</li>
</ul>
<a name="last--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>last</h4>
<pre>public&nbsp;int&nbsp;last()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index after the last byte that can be accessed.</dd>
</dl>
</li>
</ul>
<a name="order--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>order</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/nio/ByteOrder.html?is-external=true" title="class or interface in java.nio">ByteOrder</a>&nbsp;order()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the order of the bytes.</dd>
</dl>
</li>
</ul>
<a name="order-java.nio.ByteOrder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>order</h4>
<pre>public&nbsp;void&nbsp;order(<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/nio/ByteOrder.html?is-external=true" title="class or interface in java.nio">ByteOrder</a>&nbsp;order)</pre>
<div class="block">Set the byte order of the array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>order</code> - The ByteOrder to use</dd>
</dl>
</li>
</ul>
<a name="getShort-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public&nbsp;short&nbsp;getShort(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <tt>short</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="putShort-int-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre>public&nbsp;void&nbsp;putShort(int&nbsp;index,
short&nbsp;s)</pre>
<div class="block">Puts a <code>short</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>s</code> - The short to put</dd>
</dl>
</li>
</ul>
<a name="getInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public&nbsp;int&nbsp;getInt(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an <tt>int</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="putInt-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>public&nbsp;void&nbsp;putInt(int&nbsp;index,
int&nbsp;i)</pre>
<div class="block">Puts an <code>int</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>i</code> - The int to put</dd>
</dl>
</li>
</ul>
<a name="getLong-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public&nbsp;long&nbsp;getLong(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <tt>long</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="putLong-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre>public&nbsp;void&nbsp;putLong(int&nbsp;index,
long&nbsp;l)</pre>
<div class="block">Puts a <code>long</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>l</code> - The long to put</dd>
</dl>
</li>
</ul>
<a name="getFloat-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public&nbsp;float&nbsp;getFloat(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <tt>float</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="putFloat-int-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putFloat</h4>
<pre>public&nbsp;void&nbsp;putFloat(int&nbsp;index,
float&nbsp;f)</pre>
<div class="block">Puts a <code>float</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>f</code> - The float to put</dd>
</dl>
</li>
</ul>
<a name="getDouble-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public&nbsp;double&nbsp;getDouble(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <tt>double</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="putDouble-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putDouble</h4>
<pre>public&nbsp;void&nbsp;putDouble(int&nbsp;index,
double&nbsp;d)</pre>
<div class="block">Puts a <code>double</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>d</code> - The doubvle to put</dd>
</dl>
</li>
</ul>
<a name="getChar-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChar</h4>
<pre>public&nbsp;char&nbsp;getChar(int&nbsp;index)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The starting position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <tt>char</tt> from the given index.</dd>
</dl>
</li>
</ul>
<a name="putChar-int-char-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putChar</h4>
<pre>public&nbsp;void&nbsp;putChar(int&nbsp;index,
char&nbsp;c)</pre>
<div class="block">Puts a <code>char</code> at the given index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The position</dd>
<dd><code>c</code> - The char to put</dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
</li>
</ul>
<a name="length--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>length</h4>
<pre>public final&nbsp;int&nbsp;length()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mina/util/byteaccess/IoAbsoluteReader.html#length--">length</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mina/util/byteaccess/IoAbsoluteReader.html" title="interface in org.apache.mina.util.byteaccess">IoAbsoluteReader</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the total number of bytes that can be accessed.</dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>equals</h4>
<pre>public final&nbsp;boolean&nbsp;equals(<a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;other)</pre>
<div class="block">A ByteArray is equal to another ByteArray if they start and end at the
same index, have the same byte order, and contain the same bytes at each
index.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html#equals-java.lang.Object-">equals</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mina/util/byteaccess/ByteArray.html" title="interface in org.apache.mina.util.byteaccess">ByteArray</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - The ByteArray we want to compare with</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><tt>true</tt> if both ByteArray are equals</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/CompositeByteArray.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-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/mina/util/byteaccess/ByteArrayPool.html" title="class in org.apache.mina.util.byteaccess"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mina/util/byteaccess/CompositeByteArray.CursorListener.html" title="interface in org.apache.mina.util.byteaccess"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mina/util/byteaccess/CompositeByteArray.html" target="_top">Frames</a></li>
<li><a href="CompositeByteArray.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><a href="#nested.class.summary">Nested</a>&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 ======= -->
<p class="legalCopy"><small>Copyright &#169; 2004&#x2013;2019 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</small></p>
</body>
</html>