第一次提交
This commit is contained in:
commit
8121362a03
4412 files changed
+1091845
No files matched your search
@@ -0,0 +1,317 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>TarArchiveSparseEntry (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<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="TarArchiveSparseEntry (Apache Ant API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":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>Prev Class</li>
|
||||
<li><a href="../../../../org/apache/tools/tar/TarBuffer.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarArchiveSparseEntry.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarArchiveSparseEntry.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>Field | </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>Field | </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">org.apache.tools.tar</div>
|
||||
<h2 title="Class TarArchiveSparseEntry" class="title">Class TarArchiveSparseEntry</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>org.apache.tools.tar.TarArchiveSparseEntry</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar">TarConstants</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">TarArchiveSparseEntry</span>
|
||||
extends java.lang.Object
|
||||
implements <a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar">TarConstants</a></pre>
|
||||
<div class="block">This class represents a sparse entry in a Tar archive.
|
||||
|
||||
<p>
|
||||
The C structure for a sparse entry is:
|
||||
<pre>
|
||||
struct posix_header {
|
||||
struct sparse sp[21]; // TarConstants.SPARSELEN_GNU_SPARSE - offset 0
|
||||
char isextended; // TarConstants.ISEXTENDEDLEN_GNU_SPARSE - offset 504
|
||||
};
|
||||
</pre>
|
||||
Whereas, "struct sparse" is:
|
||||
<pre>
|
||||
struct sparse {
|
||||
char offset[12]; // offset 0
|
||||
char numbytes[12]; // offset 12
|
||||
};
|
||||
</pre></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>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="fields.inherited.from.class.org.apache.tools.tar.TarConstants">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Fields inherited from interface org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar">TarConstants</a></h3>
|
||||
<code><a href="../../../../org/apache/tools/tar/TarConstants.html#ATIMELEN_GNU">ATIMELEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#CHKSUMLEN">CHKSUMLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#CTIMELEN_GNU">CTIMELEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#DEVLEN">DEVLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#FORMAT_OLDGNU">FORMAT_OLDGNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#FORMAT_POSIX">FORMAT_POSIX</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#GIDLEN">GIDLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#GNAMELEN">GNAMELEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#GNU_LONGLINK">GNU_LONGLINK</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#GNU_TMAGIC">GNU_TMAGIC</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#ISEXTENDEDLEN_GNU">ISEXTENDEDLEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#ISEXTENDEDLEN_GNU_SPARSE">ISEXTENDEDLEN_GNU_SPARSE</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_BLK">LF_BLK</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_CHR">LF_CHR</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_CONTIG">LF_CONTIG</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_DIR">LF_DIR</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_FIFO">LF_FIFO</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_GNUTYPE_LONGLINK">LF_GNUTYPE_LONGLINK</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_GNUTYPE_LONGNAME">LF_GNUTYPE_LONGNAME</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_GNUTYPE_SPARSE">LF_GNUTYPE_SPARSE</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_LINK">LF_LINK</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_NORMAL">LF_NORMAL</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_OLDNORM">LF_OLDNORM</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_PAX_EXTENDED_HEADER_LC">LF_PAX_EXTENDED_HEADER_LC</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_PAX_EXTENDED_HEADER_UC">LF_PAX_EXTENDED_HEADER_UC</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_PAX_GLOBAL_EXTENDED_HEADER">LF_PAX_GLOBAL_EXTENDED_HEADER</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LF_SYMLINK">LF_SYMLINK</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#LONGNAMESLEN_GNU">LONGNAMESLEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MAGIC_OFFSET">MAGIC_OFFSET</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MAGIC_POSIX">MAGIC_POSIX</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MAGICLEN">MAGICLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MAXID">MAXID</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MAXSIZE">MAXSIZE</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MODELEN">MODELEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#MODTIMELEN">MODTIMELEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#NAMELEN">NAMELEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#OFFSETLEN_GNU">OFFSETLEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#PAD2LEN_GNU">PAD2LEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#PREFIXLEN">PREFIXLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#PURE_MAGICLEN">PURE_MAGICLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#REALSIZELEN_GNU">REALSIZELEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#SIZELEN">SIZELEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#SPARSELEN_GNU">SPARSELEN_GNU</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#SPARSELEN_GNU_SPARSE">SPARSELEN_GNU_SPARSE</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#TMAGIC">TMAGIC</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#UIDLEN">UIDLEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#UNAMELEN">UNAMELEN</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#VERSION_GNU_SPACE">VERSION_GNU_SPACE</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#VERSION_GNU_ZERO">VERSION_GNU_ZERO</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#VERSION_OFFSET">VERSION_OFFSET</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#VERSION_POSIX">VERSION_POSIX</a>, <a href="../../../../org/apache/tools/tar/TarConstants.html#VERSIONLEN">VERSIONLEN</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"> </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/tools/tar/TarArchiveSparseEntry.html#TarArchiveSparseEntry-byte:A-">TarArchiveSparseEntry</a></span>(byte[] headerBuf)</code>
|
||||
<div class="block">Construct an entry from an archive's header 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>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarArchiveSparseEntry.html#isExtended--">isExtended</a></span>()</code> </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.Object</h3>
|
||||
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="TarArchiveSparseEntry-byte:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>TarArchiveSparseEntry</h4>
|
||||
<pre>public TarArchiveSparseEntry(byte[] headerBuf)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Construct an entry from an archive's header bytes. File is set
|
||||
to null.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>headerBuf</code> - The header bytes from a tar archive entry.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on unknown format</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="isExtended--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>isExtended</h4>
|
||||
<pre>public boolean isExtended()</pre>
|
||||
</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>Prev Class</li>
|
||||
<li><a href="../../../../org/apache/tools/tar/TarBuffer.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarArchiveSparseEntry.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarArchiveSparseEntry.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>Field | </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>Field | </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>
|
||||
@@ -0,0 +1,690 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>TarBuffer (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<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="TarBuffer (Apache Ant API)";
|
||||
}
|
||||
}
|
||||
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};
|
||||
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="../../../../org/apache/tools/tar/TarArchiveSparseEntry.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li><a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarBuffer.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarBuffer.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">org.apache.tools.tar</div>
|
||||
<h2 title="Class TarBuffer" class="title">Class TarBuffer</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>org.apache.tools.tar.TarBuffer</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">TarBuffer</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">The TarBuffer class implements the tar archive concept
|
||||
of a buffered input stream. This concept goes back to the
|
||||
days of blocked tape drives and special io devices. In the
|
||||
Java universe, the only real function that this class
|
||||
performs is to ensure that files have the correct "block"
|
||||
size, or other tars will complain.
|
||||
<p>
|
||||
You should never have a need to access this class directly.
|
||||
TarBuffers are created by Tar IO Streams.</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>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#DEFAULT_BLKSIZE">DEFAULT_BLKSIZE</a></span></code>
|
||||
<div class="block">Default block size</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#DEFAULT_RCDSIZE">DEFAULT_RCDSIZE</a></span></code>
|
||||
<div class="block">Default record size</div>
|
||||
</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="../../../../org/apache/tools/tar/TarBuffer.html#TarBuffer-java.io.InputStream-">TarBuffer</a></span>(java.io.InputStream inStream)</code>
|
||||
<div class="block">Constructor for a TarBuffer on an input stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#TarBuffer-java.io.InputStream-int-">TarBuffer</a></span>(java.io.InputStream inStream,
|
||||
int blockSize)</code>
|
||||
<div class="block">Constructor for a TarBuffer on an input stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#TarBuffer-java.io.InputStream-int-int-">TarBuffer</a></span>(java.io.InputStream inStream,
|
||||
int blockSize,
|
||||
int recordSize)</code>
|
||||
<div class="block">Constructor for a TarBuffer on an input stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#TarBuffer-java.io.OutputStream-">TarBuffer</a></span>(java.io.OutputStream outStream)</code>
|
||||
<div class="block">Constructor for a TarBuffer on an output stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#TarBuffer-java.io.OutputStream-int-">TarBuffer</a></span>(java.io.OutputStream outStream,
|
||||
int blockSize)</code>
|
||||
<div class="block">Constructor for a TarBuffer on an output stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#TarBuffer-java.io.OutputStream-int-int-">TarBuffer</a></span>(java.io.OutputStream outStream,
|
||||
int blockSize,
|
||||
int recordSize)</code>
|
||||
<div class="block">Constructor for a TarBuffer on an output stream.</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>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#close--">close</a></span>()</code>
|
||||
<div class="block">Close the TarBuffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#getBlockSize--">getBlockSize</a></span>()</code>
|
||||
<div class="block">Get the TAR Buffer's block size.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#getCurrentBlockNum--">getCurrentBlockNum</a></span>()</code>
|
||||
<div class="block">Get the current block number, zero based.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#getCurrentRecordNum--">getCurrentRecordNum</a></span>()</code>
|
||||
<div class="block">Get the current record number, within the current block, zero based.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#getRecordSize--">getRecordSize</a></span>()</code>
|
||||
<div class="block">Get the TAR Buffer's record size.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#isEOFRecord-byte:A-">isEOFRecord</a></span>(byte[] record)</code>
|
||||
<div class="block">Determine if an archive record indicate End of Archive.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>byte[]</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#readRecord--">readRecord</a></span>()</code>
|
||||
<div class="block">Read a record from the input stream and return the data.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#setDebug-boolean-">setDebug</a></span>(boolean debug)</code>
|
||||
<div class="block">Set the debugging flag for the buffer.</div>
|
||||
</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/tools/tar/TarBuffer.html#skipRecord--">skipRecord</a></span>()</code>
|
||||
<div class="block">Skip over a record on the input stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarBuffer.html#writeRecord-byte:A-">writeRecord</a></span>(byte[] record)</code>
|
||||
<div class="block">Write an archive record to the archive.</div>
|
||||
</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/tools/tar/TarBuffer.html#writeRecord-byte:A-int-">writeRecord</a></span>(byte[] buf,
|
||||
int offset)</code>
|
||||
<div class="block">Write an archive record to the archive, where the record may be
|
||||
inside of a larger array buffer.</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.Object</h3>
|
||||
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Detail</h3>
|
||||
<a name="DEFAULT_RCDSIZE">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>DEFAULT_RCDSIZE</h4>
|
||||
<pre>public static final int DEFAULT_RCDSIZE</pre>
|
||||
<div class="block">Default record size</div>
|
||||
<dl>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
<dd><a href="../../../../constant-values.html#org.apache.tools.tar.TarBuffer.DEFAULT_RCDSIZE">Constant Field Values</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="DEFAULT_BLKSIZE">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>DEFAULT_BLKSIZE</h4>
|
||||
<pre>public static final int DEFAULT_BLKSIZE</pre>
|
||||
<div class="block">Default block size</div>
|
||||
<dl>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
<dd><a href="../../../../constant-values.html#org.apache.tools.tar.TarBuffer.DEFAULT_BLKSIZE">Constant Field Values</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="TarBuffer-java.io.InputStream-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarBuffer</h4>
|
||||
<pre>public TarBuffer(java.io.InputStream inStream)</pre>
|
||||
<div class="block">Constructor for a TarBuffer on an input stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>inStream</code> - the input stream to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarBuffer-java.io.InputStream-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarBuffer</h4>
|
||||
<pre>public TarBuffer(java.io.InputStream inStream,
|
||||
int blockSize)</pre>
|
||||
<div class="block">Constructor for a TarBuffer on an input stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>inStream</code> - the input stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarBuffer-java.io.InputStream-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarBuffer</h4>
|
||||
<pre>public TarBuffer(java.io.InputStream inStream,
|
||||
int blockSize,
|
||||
int recordSize)</pre>
|
||||
<div class="block">Constructor for a TarBuffer on an input stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>inStream</code> - the input stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
<dd><code>recordSize</code> - the record size to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarBuffer-java.io.OutputStream-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarBuffer</h4>
|
||||
<pre>public TarBuffer(java.io.OutputStream outStream)</pre>
|
||||
<div class="block">Constructor for a TarBuffer on an output stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>outStream</code> - the output stream to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarBuffer-java.io.OutputStream-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarBuffer</h4>
|
||||
<pre>public TarBuffer(java.io.OutputStream outStream,
|
||||
int blockSize)</pre>
|
||||
<div class="block">Constructor for a TarBuffer on an output stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>outStream</code> - the output stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarBuffer-java.io.OutputStream-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>TarBuffer</h4>
|
||||
<pre>public TarBuffer(java.io.OutputStream outStream,
|
||||
int blockSize,
|
||||
int recordSize)</pre>
|
||||
<div class="block">Constructor for a TarBuffer on an output stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>outStream</code> - the output stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
<dd><code>recordSize</code> - the record size to use</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="getBlockSize--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getBlockSize</h4>
|
||||
<pre>public int getBlockSize()</pre>
|
||||
<div class="block">Get the TAR Buffer's block size. Blocks consist of multiple records.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>the block size</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getRecordSize--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getRecordSize</h4>
|
||||
<pre>public int getRecordSize()</pre>
|
||||
<div class="block">Get the TAR Buffer's record size.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>the record size</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="setDebug-boolean-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>setDebug</h4>
|
||||
<pre>public void setDebug(boolean debug)</pre>
|
||||
<div class="block">Set the debugging flag for the buffer.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>debug</code> - If true, print debugging output.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="isEOFRecord-byte:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>isEOFRecord</h4>
|
||||
<pre>public boolean isEOFRecord(byte[] record)</pre>
|
||||
<div class="block">Determine if an archive record indicate End of Archive. End of
|
||||
archive is indicated by a record that consists entirely of null bytes.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>record</code> - The record data to check.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>true if the record data is an End of Archive</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="skipRecord--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>skipRecord</h4>
|
||||
<pre>public void skipRecord()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Skip over a record on the input stream.</div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="readRecord--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>readRecord</h4>
|
||||
<pre>public byte[] readRecord()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Read a record from the input stream and return the data.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The record data.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getCurrentBlockNum--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getCurrentBlockNum</h4>
|
||||
<pre>public int getCurrentBlockNum()</pre>
|
||||
<div class="block">Get the current block number, zero based.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The current zero based block number.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getCurrentRecordNum--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getCurrentRecordNum</h4>
|
||||
<pre>public int getCurrentRecordNum()</pre>
|
||||
<div class="block">Get the current record number, within the current block, zero based.
|
||||
Thus, current offset = (currentBlockNum * recsPerBlk) + currentRecNum.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The current zero based record number.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="writeRecord-byte:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>writeRecord</h4>
|
||||
<pre>public void writeRecord(byte[] record)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Write an archive record to the archive.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>record</code> - The record data to write to the archive.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="writeRecord-byte:A-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>writeRecord</h4>
|
||||
<pre>public void writeRecord(byte[] buf,
|
||||
int offset)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Write an archive record to the archive, where the record may be
|
||||
inside of a larger array buffer. The buffer must be "offset plus
|
||||
record size" long.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buf</code> - The buffer containing the record data to write.</dd>
|
||||
<dd><code>offset</code> - The offset of the record data within buf.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="close--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>close</h4>
|
||||
<pre>public void close()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Close the TarBuffer. If this is an output buffer, also flush the
|
||||
current block before closing.</div>
|
||||
<dl>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</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="../../../../org/apache/tools/tar/TarArchiveSparseEntry.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li><a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarBuffer.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarBuffer.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>
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,910 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>TarInputStream (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<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="TarInputStream (Apache Ant API)";
|
||||
}
|
||||
}
|
||||
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};
|
||||
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="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li><a href="../../../../org/apache/tools/tar/TarOutputStream.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarInputStream.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarInputStream.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">org.apache.tools.tar</div>
|
||||
<h2 title="Class TarInputStream" class="title">Class TarInputStream</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>java.io.InputStream</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>java.io.FilterInputStream</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>org.apache.tools.tar.TarInputStream</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd>java.io.Closeable, java.lang.AutoCloseable</dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">TarInputStream</span>
|
||||
extends java.io.FilterInputStream</pre>
|
||||
<div class="block">The TarInputStream reads a UNIX tar archive as an InputStream.
|
||||
methods are provided to position at each successive entry in
|
||||
the archive, and the read each entry as a normal input stream
|
||||
using read().</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>protected <a href="../../../../org/apache/tools/tar/TarBuffer.html" title="class in org.apache.tools.tar">TarBuffer</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#buffer">buffer</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>protected <a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#currEntry">currEntry</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>protected boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#debug">debug</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>protected long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#entryOffset">entryOffset</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>protected long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#entrySize">entrySize</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>protected boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#hasHitEOF">hasHitEOF</a></span></code> </td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>protected byte[]</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#oneBuf">oneBuf</a></span></code>
|
||||
<div class="block">This contents of this array is not used at all in this class,
|
||||
it is only here to avoid repeated object creation during calls
|
||||
to the no-arg read method.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>protected byte[]</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#readBuf">readBuf</a></span></code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="fields.inherited.from.class.java.io.FilterInputStream">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Fields inherited from class java.io.FilterInputStream</h3>
|
||||
<code>in</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"> </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/tools/tar/TarInputStream.html#TarInputStream-java.io.InputStream-">TarInputStream</a></span>(java.io.InputStream is)</code>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#TarInputStream-java.io.InputStream-int-">TarInputStream</a></span>(java.io.InputStream is,
|
||||
int blockSize)</code>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#TarInputStream-java.io.InputStream-int-int-">TarInputStream</a></span>(java.io.InputStream is,
|
||||
int blockSize,
|
||||
int recordSize)</code>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#TarInputStream-java.io.InputStream-int-int-java.lang.String-">TarInputStream</a></span>(java.io.InputStream is,
|
||||
int blockSize,
|
||||
int recordSize,
|
||||
java.lang.String encoding)</code>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#TarInputStream-java.io.InputStream-int-java.lang.String-">TarInputStream</a></span>(java.io.InputStream is,
|
||||
int blockSize,
|
||||
java.lang.String encoding)</code>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#TarInputStream-java.io.InputStream-java.lang.String-">TarInputStream</a></span>(java.io.InputStream is,
|
||||
java.lang.String encoding)</code>
|
||||
<div class="block">Constructor for TarInputStream.</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="../../../../org/apache/tools/tar/TarInputStream.html#available--">available</a></span>()</code>
|
||||
<div class="block">Get the available data that can be read from the current
|
||||
entry in the archive.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#canReadEntryData-org.apache.tools.tar.TarEntry-">canReadEntryData</a></span>(<a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a> te)</code>
|
||||
<div class="block">Whether this class is able to read the given entry.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#close--">close</a></span>()</code>
|
||||
<div class="block">Closes this stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#copyEntryContents-java.io.OutputStream-">copyEntryContents</a></span>(java.io.OutputStream out)</code>
|
||||
<div class="block">Copies the contents of the current tar archive entry directly into
|
||||
an output stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<td class="colFirst"><code>protected byte[]</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#getLongNameData--">getLongNameData</a></span>()</code>
|
||||
<div class="block">Get the next entry in this tar archive as longname data.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a></code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#getNextEntry--">getNextEntry</a></span>()</code>
|
||||
<div class="block">Get the next entry in this tar archive.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#getRecordSize--">getRecordSize</a></span>()</code>
|
||||
<div class="block">Get the record size being used by this stream's TarBuffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#mark-int-">mark</a></span>(int markLimit)</code>
|
||||
<div class="block">Since we do not support marking just yet, we do nothing.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#markSupported--">markSupported</a></span>()</code>
|
||||
<div class="block">Since we do not support marking just yet, we return false.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#read--">read</a></span>()</code>
|
||||
<div class="block">Reads a byte from the current tar archive entry.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#read-byte:A-int-int-">read</a></span>(byte[] buf,
|
||||
int offset,
|
||||
int numToRead)</code>
|
||||
<div class="block">Reads bytes from the current tar archive entry.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#reset--">reset</a></span>()</code>
|
||||
<div class="block">Since we do not support marking just yet, we do nothing.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#setDebug-boolean-">setDebug</a></span>(boolean debug)</code>
|
||||
<div class="block">Sets the debugging flag.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i13" class="rowColor">
|
||||
<td class="colFirst"><code>long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarInputStream.html#skip-long-">skip</a></span>(long numToSkip)</code>
|
||||
<div class="block">Skip bytes in the input buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.io.FilterInputStream">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class java.io.FilterInputStream</h3>
|
||||
<code>read</code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class java.lang.Object</h3>
|
||||
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Detail</h3>
|
||||
<a name="debug">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>debug</h4>
|
||||
<pre>protected boolean debug</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="hasHitEOF">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>hasHitEOF</h4>
|
||||
<pre>protected boolean hasHitEOF</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="entrySize">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>entrySize</h4>
|
||||
<pre>protected long entrySize</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="entryOffset">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>entryOffset</h4>
|
||||
<pre>protected long entryOffset</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="readBuf">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>readBuf</h4>
|
||||
<pre>protected byte[] readBuf</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="buffer">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>buffer</h4>
|
||||
<pre>protected <a href="../../../../org/apache/tools/tar/TarBuffer.html" title="class in org.apache.tools.tar">TarBuffer</a> buffer</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="currEntry">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>currEntry</h4>
|
||||
<pre>protected <a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a> currEntry</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="oneBuf">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>oneBuf</h4>
|
||||
<pre>protected byte[] oneBuf</pre>
|
||||
<div class="block">This contents of this array is not used at all in this class,
|
||||
it is only here to avoid repeated object creation during calls
|
||||
to the no-arg read method.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="TarInputStream-java.io.InputStream-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarInputStream</h4>
|
||||
<pre>public TarInputStream(java.io.InputStream is)</pre>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>is</code> - the input stream to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarInputStream-java.io.InputStream-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarInputStream</h4>
|
||||
<pre>public TarInputStream(java.io.InputStream is,
|
||||
java.lang.String encoding)</pre>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>is</code> - the input stream to use</dd>
|
||||
<dd><code>encoding</code> - name of the encoding to use for file names</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarInputStream-java.io.InputStream-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarInputStream</h4>
|
||||
<pre>public TarInputStream(java.io.InputStream is,
|
||||
int blockSize)</pre>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>is</code> - the input stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarInputStream-java.io.InputStream-int-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarInputStream</h4>
|
||||
<pre>public TarInputStream(java.io.InputStream is,
|
||||
int blockSize,
|
||||
java.lang.String encoding)</pre>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>is</code> - the input stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
<dd><code>encoding</code> - name of the encoding to use for file names</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarInputStream-java.io.InputStream-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>TarInputStream</h4>
|
||||
<pre>public TarInputStream(java.io.InputStream is,
|
||||
int blockSize,
|
||||
int recordSize)</pre>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>is</code> - the input stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
<dd><code>recordSize</code> - the record size to use</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="TarInputStream-java.io.InputStream-int-int-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>TarInputStream</h4>
|
||||
<pre>public TarInputStream(java.io.InputStream is,
|
||||
int blockSize,
|
||||
int recordSize,
|
||||
java.lang.String encoding)</pre>
|
||||
<div class="block">Constructor for TarInputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>is</code> - the input stream to use</dd>
|
||||
<dd><code>blockSize</code> - the block size to use</dd>
|
||||
<dd><code>recordSize</code> - the record size to use</dd>
|
||||
<dd><code>encoding</code> - name of the encoding to use for file names</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="setDebug-boolean-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>setDebug</h4>
|
||||
<pre>public void setDebug(boolean debug)</pre>
|
||||
<div class="block">Sets the debugging flag.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>debug</code> - True to turn on debugging.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="close--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>close</h4>
|
||||
<pre>public void close()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Closes this stream. Calls the TarBuffer's close() method.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>close</code> in interface <code>java.io.Closeable</code></dd>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>close</code> in interface <code>java.lang.AutoCloseable</code></dd>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>close</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getRecordSize--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getRecordSize</h4>
|
||||
<pre>public int getRecordSize()</pre>
|
||||
<div class="block">Get the record size being used by this stream's TarBuffer.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The TarBuffer record size.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="available--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>available</h4>
|
||||
<pre>public int available()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Get the available data that can be read from the current
|
||||
entry in the archive. This does not indicate how much data
|
||||
is left in the entire archive, only in the current entry.
|
||||
This value is determined from the entry's size header field
|
||||
and the amount of data already read from the current entry.
|
||||
Integer.MAX_VALUE is returned in case more than Integer.MAX_VALUE
|
||||
bytes are left in the current entry in the archive.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>available</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The number of available bytes for the current entry.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - for signature</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="skip-long-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>skip</h4>
|
||||
<pre>public long skip(long numToSkip)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Skip bytes in the input buffer. This skips bytes in the
|
||||
current entry's data, not the entire archive, and will
|
||||
stop at the end of the current entry's data if the number
|
||||
to skip extends beyond that point.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>skip</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>numToSkip</code> - The number of bytes to skip.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>the number actually skipped</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="markSupported--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>markSupported</h4>
|
||||
<pre>public boolean markSupported()</pre>
|
||||
<div class="block">Since we do not support marking just yet, we return false.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>markSupported</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>False.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="mark-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>mark</h4>
|
||||
<pre>public void mark(int markLimit)</pre>
|
||||
<div class="block">Since we do not support marking just yet, we do nothing.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>mark</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>markLimit</code> - The limit to mark.</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">Since we do not support marking just yet, we do nothing.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>reset</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getNextEntry--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getNextEntry</h4>
|
||||
<pre>public <a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a> getNextEntry()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Get the next entry in this tar archive. This will skip
|
||||
over any remaining data in the current entry, if there
|
||||
is one, and place the input stream at the header of the
|
||||
next entry, and read the header and instantiate a new
|
||||
TarEntry from the header bytes and return that entry.
|
||||
If there are no more entries in the archive, null will
|
||||
be returned to indicate that the end of the archive has
|
||||
been reached.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The next TarEntry in the archive, or null.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="getLongNameData--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getLongNameData</h4>
|
||||
<pre>protected byte[] getLongNameData()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Get the next entry in this tar archive as longname data.</div>
|
||||
<dl>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The next entry in the archive as longname data, or null.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="read--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>read</h4>
|
||||
<pre>public int read()
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Reads a byte from the current tar archive entry.
|
||||
|
||||
This method simply calls read(byte[], int, int).</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>read</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The byte read, or -1 at EOF.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="read-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>read</h4>
|
||||
<pre>public int read(byte[] buf,
|
||||
int offset,
|
||||
int numToRead)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Reads bytes from the current tar archive entry.
|
||||
|
||||
This method is aware of the boundaries of the current
|
||||
entry in the archive and will deal with them as if they
|
||||
were this stream's start and EOF.</div>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||
<dd><code>read</code> in class <code>java.io.FilterInputStream</code></dd>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buf</code> - The buffer into which to place bytes read.</dd>
|
||||
<dd><code>offset</code> - The offset at which to place bytes read.</dd>
|
||||
<dd><code>numToRead</code> - The number of bytes to read.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The number of bytes read, or -1 at EOF.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="copyEntryContents-java.io.OutputStream-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>copyEntryContents</h4>
|
||||
<pre>public void copyEntryContents(java.io.OutputStream out)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Copies the contents of the current tar archive entry directly into
|
||||
an output stream.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>out</code> - The OutputStream into which to write the entry's data.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - on error</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="canReadEntryData-org.apache.tools.tar.TarEntry-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>canReadEntryData</h4>
|
||||
<pre>public boolean canReadEntryData(<a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a> te)</pre>
|
||||
<div class="block">Whether this class is able to read the given entry.
|
||||
|
||||
<p>May return false if the current entry is a sparse file.</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>te</code> - TarEntry</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>boolean</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="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li><a href="../../../../org/apache/tools/tar/TarOutputStream.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarInputStream.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarInputStream.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>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,681 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>TarUtils (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<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="TarUtils (Apache Ant API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
var tableTab = "tableTab";
|
||||
var activeTableTab = "activeTableTab";
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="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/tools/tar/TarOutputStream.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarUtils.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarUtils.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>Field | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li>Constr | </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.tools.tar</div>
|
||||
<h2 title="Class TarUtils" class="title">Class TarUtils</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>org.apache.tools.tar.TarUtils</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="typeNameLabel">TarUtils</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">This class provides static utility methods to work with byte streams.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ========== 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="t1" class="tableTab"><span><a href="javascript:show(1);">Static 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>static long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#computeCheckSum-byte:A-">computeCheckSum</a></span>(byte[] buf)</code>
|
||||
<div class="block">Compute the checksum of a tar entry header.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatCheckSumOctalBytes-long-byte:A-int-int-">formatCheckSumOctalBytes</a></span>(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Writes an octal value into a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatLongOctalBytes-long-byte:A-int-int-">formatLongOctalBytes</a></span>(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Write an octal long integer into a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatLongOctalOrBinaryBytes-long-byte:A-int-int-">formatLongOctalOrBinaryBytes</a></span>(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Write an long integer into a buffer as an octal string if this
|
||||
will fit, or as a binary number otherwise.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i4" class="altColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatNameBytes-java.lang.String-byte:A-int-int-">formatNameBytes</a></span>(java.lang.String name,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Copy a name into a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i5" class="rowColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatNameBytes-java.lang.String-byte:A-int-int-org.apache.tools.zip.ZipEncoding-">formatNameBytes</a></span>(java.lang.String name,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length,
|
||||
<a href="../../../../org/apache/tools/zip/ZipEncoding.html" title="interface in org.apache.tools.zip">ZipEncoding</a> encoding)</code>
|
||||
<div class="block">Copy a name into a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i6" class="altColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatOctalBytes-long-byte:A-int-int-">formatOctalBytes</a></span>(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Write an octal integer into a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i7" class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#formatUnsignedOctalString-long-byte:A-int-int-">formatUnsignedOctalString</a></span>(long value,
|
||||
byte[] buffer,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Fill buffer with unsigned octal number, padded with leading zeroes.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i8" class="altColor">
|
||||
<td class="colFirst"><code>static boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#parseBoolean-byte:A-int-">parseBoolean</a></span>(byte[] buffer,
|
||||
int offset)</code>
|
||||
<div class="block">Parse a boolean byte from a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i9" class="rowColor">
|
||||
<td class="colFirst"><code>static java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#parseName-byte:A-int-int-">parseName</a></span>(byte[] buffer,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Parse an entry name from a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i10" class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#parseName-byte:A-int-int-org.apache.tools.zip.ZipEncoding-">parseName</a></span>(byte[] buffer,
|
||||
int offset,
|
||||
int length,
|
||||
<a href="../../../../org/apache/tools/zip/ZipEncoding.html" title="interface in org.apache.tools.zip">ZipEncoding</a> encoding)</code>
|
||||
<div class="block">Parse an entry name from a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i11" class="rowColor">
|
||||
<td class="colFirst"><code>static long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#parseOctal-byte:A-int-int-">parseOctal</a></span>(byte[] buffer,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Parse an octal string from a buffer.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i12" class="altColor">
|
||||
<td class="colFirst"><code>static long</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/tools/tar/TarUtils.html#parseOctalOrBinary-byte:A-int-int-">parseOctalOrBinary</a></span>(byte[] buffer,
|
||||
int offset,
|
||||
int length)</code>
|
||||
<div class="block">Compute the value contained in a byte buffer.</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.Object</h3>
|
||||
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Detail</h3>
|
||||
<a name="parseOctal-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>parseOctal</h4>
|
||||
<pre>public static long parseOctal(byte[] buffer,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Parse an octal string from a buffer.
|
||||
|
||||
<p>Leading spaces are ignored.
|
||||
The buffer must contain a trailing space or NUL,
|
||||
and may contain an additional trailing space or NUL.</p>
|
||||
|
||||
<p>The input buffer is allowed to contain all NULs,
|
||||
in which case the method returns 0L
|
||||
(this allows for missing fields).</p>
|
||||
|
||||
<p>To work-around some tar implementations that insert a
|
||||
leading NUL this method returns 0 if it detects a leading NUL
|
||||
since Ant 1.9.</p></div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buffer</code> - The buffer from which to parse.</dd>
|
||||
<dd><code>offset</code> - The offset into the buffer from which to parse.</dd>
|
||||
<dd><code>length</code> - The maximum number of bytes to parse - must be at least 2 bytes.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The long value of the octal string.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the trailing space/NUL is missing or if a invalid byte is detected.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="parseOctalOrBinary-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>parseOctalOrBinary</h4>
|
||||
<pre>public static long parseOctalOrBinary(byte[] buffer,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Compute the value contained in a byte buffer. If the most
|
||||
significant bit of the first byte in the buffer is set, this
|
||||
bit is ignored and the rest of the buffer is interpreted as a
|
||||
binary number. Otherwise, the buffer is interpreted as an
|
||||
octal number as per the parseOctal function above.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buffer</code> - The buffer from which to parse.</dd>
|
||||
<dd><code>offset</code> - The offset into the buffer from which to parse.</dd>
|
||||
<dd><code>length</code> - The maximum number of bytes to parse.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The long value of the octal or binary string.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the trailing space/NUL is
|
||||
missing or an invalid byte is detected in an octal number, or
|
||||
if a binary number would exceed the size of a signed long
|
||||
64-bit integer.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="parseBoolean-byte:A-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>parseBoolean</h4>
|
||||
<pre>public static boolean parseBoolean(byte[] buffer,
|
||||
int offset)</pre>
|
||||
<div class="block">Parse a boolean byte from a buffer.
|
||||
Leading spaces and NUL are ignored.
|
||||
The buffer may contain trailing spaces or NULs.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buffer</code> - The buffer from which to parse.</dd>
|
||||
<dd><code>offset</code> - The offset into the buffer from which to parse.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The boolean value of the bytes.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if an invalid byte is detected.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="parseName-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>parseName</h4>
|
||||
<pre>public static java.lang.String parseName(byte[] buffer,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Parse an entry name from a buffer.
|
||||
Parsing stops when a NUL is found
|
||||
or the buffer length is reached.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buffer</code> - The buffer from which to parse.</dd>
|
||||
<dd><code>offset</code> - The offset into the buffer from which to parse.</dd>
|
||||
<dd><code>length</code> - The maximum number of bytes to parse.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The entry name.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="parseName-byte:A-int-int-org.apache.tools.zip.ZipEncoding-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>parseName</h4>
|
||||
<pre>public static java.lang.String parseName(byte[] buffer,
|
||||
int offset,
|
||||
int length,
|
||||
<a href="../../../../org/apache/tools/zip/ZipEncoding.html" title="interface in org.apache.tools.zip">ZipEncoding</a> encoding)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Parse an entry name from a buffer.
|
||||
Parsing stops when a NUL is found
|
||||
or the buffer length is reached.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buffer</code> - The buffer from which to parse.</dd>
|
||||
<dd><code>offset</code> - The offset into the buffer from which to parse.</dd>
|
||||
<dd><code>length</code> - The maximum number of bytes to parse.</dd>
|
||||
<dd><code>encoding</code> - name of the encoding to use for file names</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The entry name.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - if decode fails</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatNameBytes-java.lang.String-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatNameBytes</h4>
|
||||
<pre>public static int formatNameBytes(java.lang.String name,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Copy a name into a buffer.
|
||||
Copies characters from the name into the buffer
|
||||
starting at the specified offset.
|
||||
If the buffer is longer than the name, the buffer
|
||||
is filled with trailing NULs.
|
||||
If the name is longer than the buffer,
|
||||
the output is truncated.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>name</code> - The header name from which to copy the characters.</dd>
|
||||
<dd><code>buf</code> - The buffer where the name is to be stored.</dd>
|
||||
<dd><code>offset</code> - The starting offset into the buffer</dd>
|
||||
<dd><code>length</code> - The maximum number of header bytes to copy.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The updated offset, i.e. offset + length</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatNameBytes-java.lang.String-byte:A-int-int-org.apache.tools.zip.ZipEncoding-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatNameBytes</h4>
|
||||
<pre>public static int formatNameBytes(java.lang.String name,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length,
|
||||
<a href="../../../../org/apache/tools/zip/ZipEncoding.html" title="interface in org.apache.tools.zip">ZipEncoding</a> encoding)
|
||||
throws java.io.IOException</pre>
|
||||
<div class="block">Copy a name into a buffer.
|
||||
Copies characters from the name into the buffer
|
||||
starting at the specified offset.
|
||||
If the buffer is longer than the name, the buffer
|
||||
is filled with trailing NULs.
|
||||
If the name is longer than the buffer,
|
||||
the output is truncated.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>name</code> - The header name from which to copy the characters.</dd>
|
||||
<dd><code>buf</code> - The buffer where the name is to be stored.</dd>
|
||||
<dd><code>offset</code> - The starting offset into the buffer</dd>
|
||||
<dd><code>length</code> - The maximum number of header bytes to copy.</dd>
|
||||
<dd><code>encoding</code> - name of the encoding to use for file names</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The updated offset, i.e. offset + length</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.io.IOException</code> - if encode fails</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatUnsignedOctalString-long-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatUnsignedOctalString</h4>
|
||||
<pre>public static void formatUnsignedOctalString(long value,
|
||||
byte[] buffer,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Fill buffer with unsigned octal number, padded with leading zeroes.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - number to convert to octal - treated as unsigned</dd>
|
||||
<dd><code>buffer</code> - destination buffer</dd>
|
||||
<dd><code>offset</code> - starting offset in buffer</dd>
|
||||
<dd><code>length</code> - length of buffer to fill</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the value will not fit in the buffer</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatOctalBytes-long-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatOctalBytes</h4>
|
||||
<pre>public static int formatOctalBytes(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Write an octal integer into a buffer.
|
||||
|
||||
Uses <a href="../../../../org/apache/tools/tar/TarUtils.html#formatUnsignedOctalString-long-byte:A-int-int-"><code>formatUnsignedOctalString(long, byte[], int, int)</code></a> to format
|
||||
the value as an octal string with leading zeros.
|
||||
The converted number is followed by space and NUL</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - The value to write</dd>
|
||||
<dd><code>buf</code> - The buffer to receive the output</dd>
|
||||
<dd><code>offset</code> - The starting offset into the buffer</dd>
|
||||
<dd><code>length</code> - The size of the output buffer</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The updated offset, i.e offset+length</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the value (and trailer) will not fit in the buffer</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatLongOctalBytes-long-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatLongOctalBytes</h4>
|
||||
<pre>public static int formatLongOctalBytes(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Write an octal long integer into a buffer.
|
||||
|
||||
Uses <a href="../../../../org/apache/tools/tar/TarUtils.html#formatUnsignedOctalString-long-byte:A-int-int-"><code>formatUnsignedOctalString(long, byte[], int, int)</code></a> to format
|
||||
the value as an octal string with leading zeros.
|
||||
The converted number is followed by a space.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - The value to write as octal</dd>
|
||||
<dd><code>buf</code> - The destinationbuffer.</dd>
|
||||
<dd><code>offset</code> - The starting offset into the buffer.</dd>
|
||||
<dd><code>length</code> - The length of the buffer</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The updated offset</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the value (and trailer) will not fit in the buffer</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatLongOctalOrBinaryBytes-long-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatLongOctalOrBinaryBytes</h4>
|
||||
<pre>public static int formatLongOctalOrBinaryBytes(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Write an long integer into a buffer as an octal string if this
|
||||
will fit, or as a binary number otherwise.
|
||||
|
||||
Uses <a href="../../../../org/apache/tools/tar/TarUtils.html#formatUnsignedOctalString-long-byte:A-int-int-"><code>formatUnsignedOctalString(long, byte[], int, int)</code></a> to format
|
||||
the value as an octal string with leading zeros.
|
||||
The converted number is followed by a space.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - The value to write into the buffer.</dd>
|
||||
<dd><code>buf</code> - The destination buffer.</dd>
|
||||
<dd><code>offset</code> - The starting offset into the buffer.</dd>
|
||||
<dd><code>length</code> - The length of the buffer.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The updated offset.</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the value (and trailer)
|
||||
will not fit in the buffer.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="formatCheckSumOctalBytes-long-byte:A-int-int-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>formatCheckSumOctalBytes</h4>
|
||||
<pre>public static int formatCheckSumOctalBytes(long value,
|
||||
byte[] buf,
|
||||
int offset,
|
||||
int length)</pre>
|
||||
<div class="block">Writes an octal value into a buffer.
|
||||
|
||||
Uses <a href="../../../../org/apache/tools/tar/TarUtils.html#formatUnsignedOctalString-long-byte:A-int-int-"><code>formatUnsignedOctalString(long, byte[], int, int)</code></a> to format
|
||||
the value as an octal string with leading zeros.
|
||||
The converted number is followed by NUL and then space.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>value</code> - The value to convert</dd>
|
||||
<dd><code>buf</code> - The destination buffer</dd>
|
||||
<dd><code>offset</code> - The starting offset into the buffer.</dd>
|
||||
<dd><code>length</code> - The size of the buffer.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The updated value of offset, i.e. offset+length</dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.IllegalArgumentException</code> - if the value (and trailer) will not fit in the buffer</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="computeCheckSum-byte:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>computeCheckSum</h4>
|
||||
<pre>public static long computeCheckSum(byte[] buf)</pre>
|
||||
<div class="block">Compute the checksum of a tar entry header.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>buf</code> - The tar entry's header buffer.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>The computed checksum.</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="../../../../org/apache/tools/tar/TarOutputStream.html" title="class in org.apache.tools.tar"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/TarUtils.html" target="_top">Frames</a></li>
|
||||
<li><a href="TarUtils.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>Field | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>org.apache.tools.tar (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar"><a href="../../../../org/apache/tools/tar/package-summary.html" target="classFrame">org.apache.tools.tar</a></h1>
|
||||
<div class="indexContainer">
|
||||
<h2 title="Interfaces">Interfaces</h2>
|
||||
<ul title="Interfaces">
|
||||
<li><a href="TarConstants.html" title="interface in org.apache.tools.tar" target="classFrame"><span class="interfaceName">TarConstants</span></a></li>
|
||||
</ul>
|
||||
<h2 title="Classes">Classes</h2>
|
||||
<ul title="Classes">
|
||||
<li><a href="TarArchiveSparseEntry.html" title="class in org.apache.tools.tar" target="classFrame">TarArchiveSparseEntry</a></li>
|
||||
<li><a href="TarBuffer.html" title="class in org.apache.tools.tar" target="classFrame">TarBuffer</a></li>
|
||||
<li><a href="TarEntry.html" title="class in org.apache.tools.tar" target="classFrame">TarEntry</a></li>
|
||||
<li><a href="TarInputStream.html" title="class in org.apache.tools.tar" target="classFrame">TarInputStream</a></li>
|
||||
<li><a href="TarOutputStream.html" title="class in org.apache.tools.tar" target="classFrame">TarOutputStream</a></li>
|
||||
<li><a href="TarUtils.html" title="class in org.apache.tools.tar" target="classFrame">TarUtils</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,190 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>org.apache.tools.tar (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<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="org.apache.tools.tar (Apache Ant API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</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 class="navBarCell1Rev">Package</li>
|
||||
<li>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="../../../../org/apache/tools/mail/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../org/apache/tools/zip/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.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>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Package" class="title">Package org.apache.tools.tar</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
|
||||
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Interface</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar">TarConstants</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This interface contains all the definitions used in the package.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
|
||||
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Class</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarArchiveSparseEntry.html" title="class in org.apache.tools.tar">TarArchiveSparseEntry</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This class represents a sparse entry in a Tar archive.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarBuffer.html" title="class in org.apache.tools.tar">TarBuffer</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The TarBuffer class implements the tar archive concept
|
||||
of a buffered input stream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar">TarEntry</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This class represents an entry in a Tar archive.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarInputStream.html" title="class in org.apache.tools.tar">TarInputStream</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The TarInputStream reads a UNIX tar archive as an InputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarOutputStream.html" title="class in org.apache.tools.tar">TarOutputStream</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The TarOutputStream writes a UNIX tar archive as an OutputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../../org/apache/tools/tar/TarUtils.html" title="class in org.apache.tools.tar">TarUtils</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This class provides static utility methods to work with byte streams.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= 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 class="navBarCell1Rev">Package</li>
|
||||
<li>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="../../../../org/apache/tools/mail/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../../org/apache/tools/zip/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/package-summary.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-summary.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>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,160 @@
|
||||
<!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_171) on Tue Jun 19 08:43:58 CEST 2018 -->
|
||||
<title>org.apache.tools.tar Class Hierarchy (Apache Ant API)</title>
|
||||
<meta name="date" content="2018-06-19">
|
||||
<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="org.apache.tools.tar Class Hierarchy (Apache Ant API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
</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</li>
|
||||
<li class="navBarCell1Rev">Tree</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/tools/mail/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../org/apache/tools/zip/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.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>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package org.apache.tools.tar</h1>
|
||||
<span class="packageHierarchyLabel">Package Hierarchies:</span>
|
||||
<ul class="horizontal">
|
||||
<li><a href="../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">java.lang.Object
|
||||
<ul>
|
||||
<li type="circle">java.io.InputStream (implements java.io.Closeable)
|
||||
<ul>
|
||||
<li type="circle">java.io.FilterInputStream
|
||||
<ul>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarInputStream.html" title="class in org.apache.tools.tar"><span class="typeNameLink">TarInputStream</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">java.io.OutputStream (implements java.io.Closeable, java.io.Flushable)
|
||||
<ul>
|
||||
<li type="circle">java.io.FilterOutputStream
|
||||
<ul>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarOutputStream.html" title="class in org.apache.tools.tar"><span class="typeNameLink">TarOutputStream</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarArchiveSparseEntry.html" title="class in org.apache.tools.tar"><span class="typeNameLink">TarArchiveSparseEntry</span></a> (implements org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar">TarConstants</a>)</li>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarBuffer.html" title="class in org.apache.tools.tar"><span class="typeNameLink">TarBuffer</span></a></li>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarEntry.html" title="class in org.apache.tools.tar"><span class="typeNameLink">TarEntry</span></a> (implements org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar">TarConstants</a>)</li>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarUtils.html" title="class in org.apache.tools.tar"><span class="typeNameLink">TarUtils</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">org.apache.tools.tar.<a href="../../../../org/apache/tools/tar/TarConstants.html" title="interface in org.apache.tools.tar"><span class="typeNameLink">TarConstants</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= 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</li>
|
||||
<li class="navBarCell1Rev">Tree</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/tools/mail/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../../org/apache/tools/zip/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../../index.html?org/apache/tools/tar/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.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>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user