mirror of
https://github.com/samsonjs/media.git
synced 2026-04-08 11:45:51 +00:00
1080 lines
46 KiB
HTML
1080 lines
46 KiB
HTML
<!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_101) on Wed Dec 14 17:18:29 GMT 2016 -->
|
|
<title>ParsableByteArray (ExoPlayer library)</title>
|
|
<meta name="date" content="2016-12-14">
|
|
<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="ParsableByteArray (ExoPlayer library)";
|
|
}
|
|
}
|
|
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,"i37":10,"i38":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="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="../../../../../com/google/android/exoplayer/util/ParsableBitArray.html" title="class in com.google.android.exoplayer.util"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/google/android/exoplayer/util/ParserUtil.html" title="class in com.google.android.exoplayer.util"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/google/android/exoplayer/util/ParsableByteArray.html" target="_top">Frames</a></li>
|
|
<li><a href="ParsableByteArray.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../../allclasses-noframe.html">All 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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </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">com.google.android.exoplayer.util</div>
|
|
<h2 title="Class ParsableByteArray" class="title">Class ParsableByteArray</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/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>com.google.android.exoplayer.util.ParsableByteArray</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public final class <span class="typeNameLabel">ParsableByteArray</span>
|
|
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
|
|
<div class="block">Wraps a byte array, providing a set of methods for parsing data from it. Numerical values are
|
|
parsed with the assumption that their constituent bytes are in big endian order.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>byte[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#data">data</a></span></code> </td>
|
|
</tr>
|
|
</table>
|
|
</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"> </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="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#ParsableByteArray--">ParsableByteArray</a></span>()</code>
|
|
<div class="block">Creates a new instance that initially has no backing data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#ParsableByteArray-byte:A-">ParsableByteArray</a></span>(byte[] data)</code>
|
|
<div class="block">Creates a new instance wrapping <code>data</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#ParsableByteArray-byte:A-int-">ParsableByteArray</a></span>(byte[] data,
|
|
int limit)</code>
|
|
<div class="block">Creates a new instance that wraps an existing array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#ParsableByteArray-int-">ParsableByteArray</a></span>(int length)</code>
|
|
<div class="block">Creates a new instance with <code>length</code> bytes.</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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#bytesLeft--">bytesLeft</a></span>()</code>
|
|
<div class="block">Returns the number of bytes yet to be read.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#capacity--">capacity</a></span>()</code>
|
|
<div class="block">Returns the capacity of the array, which may be larger than the limit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#getPosition--">getPosition</a></span>()</code>
|
|
<div class="block">Returns the current offset in the array, in bytes.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#limit--">limit</a></span>()</code>
|
|
<div class="block">Returns the limit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readBytes-byte:A-int-int-">readBytes</a></span>(byte[] buffer,
|
|
int offset,
|
|
int length)</code>
|
|
<div class="block">Reads the next <code>length</code> bytes into <code>buffer</code> at <code>offset</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readBytes-java.nio.ByteBuffer-int-">readBytes</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer,
|
|
int length)</code>
|
|
<div class="block">Reads the next <code>length</code> bytes into <code>buffer</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readBytes-com.google.android.exoplayer.util.ParsableBitArray-int-">readBytes</a></span>(<a href="../../../../../com/google/android/exoplayer/util/ParsableBitArray.html" title="class in com.google.android.exoplayer.util">ParsableBitArray</a> bitArray,
|
|
int length)</code>
|
|
<div class="block">Reads the next <code>length</code> bytes into <code>bitArray</code>, and resets the position of
|
|
<code>bitArray</code> to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readDouble--">readDouble</a></span>()</code>
|
|
<div class="block">Reads the next eight bytes as a 64-bit floating point value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readFloat--">readFloat</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as a 32-bit floating point value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readInt--">readInt</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as a signed value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLine--">readLine</a></span>()</code>
|
|
<div class="block">Reads a line of text.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianInt--">readLittleEndianInt</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as an signed value in little endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianInt24--">readLittleEndianInt24</a></span>()</code>
|
|
<div class="block">Reads the next three bytes as a signed value in little endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianLong--">readLittleEndianLong</a></span>()</code>
|
|
<div class="block">Reads the next eight bytes as a signed value in little endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>short</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianShort--">readLittleEndianShort</a></span>()</code>
|
|
<div class="block">Reads the next two bytes as a signed value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianUnsignedInt--">readLittleEndianUnsignedInt</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as an unsigned value in little endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianUnsignedInt24--">readLittleEndianUnsignedInt24</a></span>()</code>
|
|
<div class="block">Reads the next three bytes as an unsigned value in little endian order.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianUnsignedIntToInt--">readLittleEndianUnsignedIntToInt</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit
|
|
is a zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLittleEndianUnsignedShort--">readLittleEndianUnsignedShort</a></span>()</code>
|
|
<div class="block">Reads the next two bytes as an unsigned value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readLong--">readLong</a></span>()</code>
|
|
<div class="block">Reads the next eight bytes as a signed value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readNullTerminatedString--">readNullTerminatedString</a></span>()</code>
|
|
<div class="block">Reads a null-terminated string using the default character set.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>short</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readShort--">readShort</a></span>()</code>
|
|
<div class="block">Reads the next two bytes as an signed value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readString-int-">readString</a></span>(int length)</code>
|
|
<div class="block">Reads the next <code>length</code> bytes as UTF-8 characters.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readString-int-java.nio.charset.Charset-">readString</a></span>(int length,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> charset)</code>
|
|
<div class="block">Reads the next <code>length</code> bytes as characters in the specified <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readSynchSafeInt--">readSynchSafeInt</a></span>()</code>
|
|
<div class="block">Reads a Synchsafe integer.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedByte--">readUnsignedByte</a></span>()</code>
|
|
<div class="block">Reads the next byte as an unsigned value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedFixedPoint1616--">readUnsignedFixedPoint1616</a></span>()</code>
|
|
<div class="block">Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedInt--">readUnsignedInt</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as an unsigned value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedInt24--">readUnsignedInt24</a></span>()</code>
|
|
<div class="block">Reads the next three bytes as an unsigned value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedIntToInt--">readUnsignedIntToInt</a></span>()</code>
|
|
<div class="block">Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedLongToLong--">readUnsignedLongToLong</a></span>()</code>
|
|
<div class="block">Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUnsignedShort--">readUnsignedShort</a></span>()</code>
|
|
<div class="block">Reads the next two bytes as an unsigned value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#readUTF8EncodedLong--">readUTF8EncodedLong</a></span>()</code>
|
|
<div class="block">Reads a long value encoded by UTF-8 encoding</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#reset--">reset</a></span>()</code>
|
|
<div class="block">Sets the position and limit to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#reset-byte:A-int-">reset</a></span>(byte[] data,
|
|
int limit)</code>
|
|
<div class="block">Updates the instance to wrap <code>data</code>, and resets the position to zero.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i35" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#reset-int-">reset</a></span>(int limit)</code>
|
|
<div class="block">Resets the position to zero and the limit to the specified value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i36" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#setLimit-int-">setLimit</a></span>(int limit)</code>
|
|
<div class="block">Sets the limit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#setPosition-int-">setPosition</a></span>(int position)</code>
|
|
<div class="block">Sets the reading offset in the array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i38" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/util/ParsableByteArray.html#skipBytes-int-">skipBytes</a></span>(int bytes)</code>
|
|
<div class="block">Moves the reading offset by <code>bytes</code>.</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 java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/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">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="data">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>data</h4>
|
|
<pre>public byte[] data</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="ParsableByteArray--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ParsableByteArray</h4>
|
|
<pre>public ParsableByteArray()</pre>
|
|
<div class="block">Creates a new instance that initially has no backing data.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="ParsableByteArray-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ParsableByteArray</h4>
|
|
<pre>public ParsableByteArray(int length)</pre>
|
|
<div class="block">Creates a new instance with <code>length</code> bytes.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="ParsableByteArray-byte:A-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ParsableByteArray</h4>
|
|
<pre>public ParsableByteArray(byte[] data)</pre>
|
|
<div class="block">Creates a new instance wrapping <code>data</code>.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="ParsableByteArray-byte:A-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>ParsableByteArray</h4>
|
|
<pre>public ParsableByteArray(byte[] data,
|
|
int limit)</pre>
|
|
<div class="block">Creates a new instance that wraps an existing array.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>data</code> - The data to wrap.</dd>
|
|
<dd><code>limit</code> - The limit.</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="reset-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>reset</h4>
|
|
<pre>public void reset(int limit)</pre>
|
|
<div class="block">Resets the position to zero and the limit to the specified value. If the limit exceeds the
|
|
capacity, <code>data</code> is replaced with a new array of sufficient size.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>limit</code> - The limit to set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="reset-byte:A-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>reset</h4>
|
|
<pre>public void reset(byte[] data,
|
|
int limit)</pre>
|
|
<div class="block">Updates the instance to wrap <code>data</code>, and resets the position to zero.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>data</code> - The array to wrap.</dd>
|
|
<dd><code>limit</code> - The limit.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="reset--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>reset</h4>
|
|
<pre>public void reset()</pre>
|
|
<div class="block">Sets the position and limit to zero.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="bytesLeft--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bytesLeft</h4>
|
|
<pre>public int bytesLeft()</pre>
|
|
<div class="block">Returns the number of bytes yet to be read.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="limit--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>limit</h4>
|
|
<pre>public int limit()</pre>
|
|
<div class="block">Returns the limit.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setLimit-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLimit</h4>
|
|
<pre>public void setLimit(int limit)</pre>
|
|
<div class="block">Sets the limit.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>limit</code> - The limit to set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getPosition--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPosition</h4>
|
|
<pre>public int getPosition()</pre>
|
|
<div class="block">Returns the current offset in the array, in bytes.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="capacity--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>capacity</h4>
|
|
<pre>public int capacity()</pre>
|
|
<div class="block">Returns the capacity of the array, which may be larger than the limit.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setPosition-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre>public void setPosition(int position)</pre>
|
|
<div class="block">Sets the reading offset in the array.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>position</code> - Byte offset in the array from which to read.</dd>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - Thrown if the new position is neither in nor at the end of the
|
|
array.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="skipBytes-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>skipBytes</h4>
|
|
<pre>public void skipBytes(int bytes)</pre>
|
|
<div class="block">Moves the reading offset by <code>bytes</code>.</div>
|
|
<dl>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - Thrown if the new position is neither in nor at the end of the
|
|
array.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readBytes-com.google.android.exoplayer.util.ParsableBitArray-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readBytes</h4>
|
|
<pre>public void readBytes(<a href="../../../../../com/google/android/exoplayer/util/ParsableBitArray.html" title="class in com.google.android.exoplayer.util">ParsableBitArray</a> bitArray,
|
|
int length)</pre>
|
|
<div class="block">Reads the next <code>length</code> bytes into <code>bitArray</code>, and resets the position of
|
|
<code>bitArray</code> to zero.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>bitArray</code> - The <a href="../../../../../com/google/android/exoplayer/util/ParsableBitArray.html" title="class in com.google.android.exoplayer.util"><code>ParsableBitArray</code></a> into which the bytes should be read.</dd>
|
|
<dd><code>length</code> - The number of bytes to write.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readBytes-byte:A-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readBytes</h4>
|
|
<pre>public void readBytes(byte[] buffer,
|
|
int offset,
|
|
int length)</pre>
|
|
<div class="block">Reads the next <code>length</code> bytes into <code>buffer</code> at <code>offset</code>.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/System.html?is-external=true#arraycopy-java.lang.Object-int-java.lang.Object-int-int-" title="class or interface in java.lang"><code>System.arraycopy(java.lang.Object, int, java.lang.Object, int, int)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readBytes-java.nio.ByteBuffer-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readBytes</h4>
|
|
<pre>public void readBytes(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer,
|
|
int length)</pre>
|
|
<div class="block">Reads the next <code>length</code> bytes into <code>buffer</code>.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html?is-external=true#put-byte:A-int-int-" title="class or interface in java.nio"><code>ByteBuffer.put(byte[], int, int)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedByte--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedByte</h4>
|
|
<pre>public int readUnsignedByte()</pre>
|
|
<div class="block">Reads the next byte as an unsigned value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedShort--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedShort</h4>
|
|
<pre>public int readUnsignedShort()</pre>
|
|
<div class="block">Reads the next two bytes as an unsigned value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianUnsignedShort--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianUnsignedShort</h4>
|
|
<pre>public int readLittleEndianUnsignedShort()</pre>
|
|
<div class="block">Reads the next two bytes as an unsigned value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readShort--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readShort</h4>
|
|
<pre>public short readShort()</pre>
|
|
<div class="block">Reads the next two bytes as an signed value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianShort--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianShort</h4>
|
|
<pre>public short readLittleEndianShort()</pre>
|
|
<div class="block">Reads the next two bytes as a signed value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedInt24--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedInt24</h4>
|
|
<pre>public int readUnsignedInt24()</pre>
|
|
<div class="block">Reads the next three bytes as an unsigned value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianInt24--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianInt24</h4>
|
|
<pre>public int readLittleEndianInt24()</pre>
|
|
<div class="block">Reads the next three bytes as a signed value in little endian order.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianUnsignedInt24--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianUnsignedInt24</h4>
|
|
<pre>public int readLittleEndianUnsignedInt24()</pre>
|
|
<div class="block">Reads the next three bytes as an unsigned value in little endian order.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedInt</h4>
|
|
<pre>public long readUnsignedInt()</pre>
|
|
<div class="block">Reads the next four bytes as an unsigned value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianUnsignedInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianUnsignedInt</h4>
|
|
<pre>public long readLittleEndianUnsignedInt()</pre>
|
|
<div class="block">Reads the next four bytes as an unsigned value in little endian order.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readInt</h4>
|
|
<pre>public int readInt()</pre>
|
|
<div class="block">Reads the next four bytes as a signed value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianInt</h4>
|
|
<pre>public int readLittleEndianInt()</pre>
|
|
<div class="block">Reads the next four bytes as an signed value in little endian order.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLong--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLong</h4>
|
|
<pre>public long readLong()</pre>
|
|
<div class="block">Reads the next eight bytes as a signed value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianLong--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianLong</h4>
|
|
<pre>public long readLittleEndianLong()</pre>
|
|
<div class="block">Reads the next eight bytes as a signed value in little endian order.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedFixedPoint1616--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedFixedPoint1616</h4>
|
|
<pre>public int readUnsignedFixedPoint1616()</pre>
|
|
<div class="block">Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readSynchSafeInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readSynchSafeInt</h4>
|
|
<pre>public int readSynchSafeInt()</pre>
|
|
<div class="block">Reads a Synchsafe integer.
|
|
<p>
|
|
Synchsafe integers keep the highest bit of every byte zeroed. A 32 bit synchsafe integer can
|
|
store 28 bits of information.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The parsed value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedIntToInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedIntToInt</h4>
|
|
<pre>public int readUnsignedIntToInt()</pre>
|
|
<div class="block">Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.</div>
|
|
<dl>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - Thrown if the top bit of the input data is set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readLittleEndianUnsignedIntToInt--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLittleEndianUnsignedIntToInt</h4>
|
|
<pre>public int readLittleEndianUnsignedIntToInt()</pre>
|
|
<div class="block">Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit
|
|
is a zero.</div>
|
|
<dl>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - Thrown if the top bit of the input data is set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readUnsignedLongToLong--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readUnsignedLongToLong</h4>
|
|
<pre>public long readUnsignedLongToLong()</pre>
|
|
<div class="block">Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.</div>
|
|
<dl>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - Thrown if the top bit of the input data is set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readFloat--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readFloat</h4>
|
|
<pre>public float readFloat()</pre>
|
|
<div class="block">Reads the next four bytes as a 32-bit floating point value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readDouble--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readDouble</h4>
|
|
<pre>public double readDouble()</pre>
|
|
<div class="block">Reads the next eight bytes as a 64-bit floating point value.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="readString-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readString</h4>
|
|
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> readString(int length)</pre>
|
|
<div class="block">Reads the next <code>length</code> bytes as UTF-8 characters.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>length</code> - The number of bytes to read.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The string encoded by the bytes.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readString-int-java.nio.charset.Charset-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readString</h4>
|
|
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> readString(int length,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> charset)</pre>
|
|
<div class="block">Reads the next <code>length</code> bytes as characters in the specified <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>length</code> - The number of bytes to read.</dd>
|
|
<dd><code>charset</code> - The character set of the encoded characters.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The string encoded by the bytes in the specified character set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readLine--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readLine</h4>
|
|
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> readLine()</pre>
|
|
<div class="block">Reads a line of text.
|
|
<p>
|
|
A line is considered to be terminated by any one of a carriage return ('\r'), a line feed
|
|
('\n'), or a carriage return followed immediately by a line feed ('\r\n'). The system's default
|
|
charset (UTF-8) is used.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>A String containing the contents of the line, not including any line-termination
|
|
characters, or null if the end of the stream has been reached.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readNullTerminatedString--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readNullTerminatedString</h4>
|
|
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> readNullTerminatedString()</pre>
|
|
<div class="block">Reads a null-terminated string using the default character set.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>A String, not including any null characters, or null if the end of the stream has
|
|
been reached.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="readUTF8EncodedLong--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>readUTF8EncodedLong</h4>
|
|
<pre>public long readUTF8EncodedLong()</pre>
|
|
<div class="block">Reads a long value encoded by UTF-8 encoding</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Decoded long value</dd>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></code> - if there is a problem with decoding</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="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="../../../../../com/google/android/exoplayer/util/ParsableBitArray.html" title="class in com.google.android.exoplayer.util"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/google/android/exoplayer/util/ParserUtil.html" title="class in com.google.android.exoplayer.util"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/google/android/exoplayer/util/ParsableByteArray.html" target="_top">Frames</a></li>
|
|
<li><a href="ParsableByteArray.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../../allclasses-noframe.html">All 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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|