📄 arcutils.html
字号:
<A NAME="ARCUtils()"><!-- --></A><H3>ARCUtils</H3><PRE>public <B>ARCUtils</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="parseArcFilename(java.lang.String)"><!-- --></A><H3>parseArcFilename</H3><PRE>public static java.lang.String <B>parseArcFilename</B>(java.lang.String pathOrUri) throws java.net.URISyntaxException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pathOrUri</CODE> - Path or URI to extract arc filename from.<DT><B>Returns:</B><DD>Extracted arc file name.<DT><B>Throws:</B><DD><CODE>java.net.URISyntaxException</CODE></DL></DD></DL><HR><A NAME="isCompressed(java.io.File)"><!-- --></A><H3>isCompressed</H3><PRE>public static boolean <B>isCompressed</B>(java.io.File arcFile) throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test.<DT><B>Returns:</B><DD>True if <code>arcFile</code> is compressed ARC.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="testCompressedARCFile(java.io.File)"><!-- --></A><H3>testCompressedARCFile</H3><PRE>public static boolean <B>testCompressedARCFile</B>(java.io.File arcFile) throws java.io.IOException</PRE><DL><DD>Check file is compressed and in ARC GZIP format.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test if its Internet Archive ARC file GZIP compressed.<DT><B>Returns:</B><DD>True if this is an Internet Archive GZIP'd ARC file (It begins w/ the Internet Archive GZIP header and has the COMPRESSED_ARC_FILE_EXTENSION suffix).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If file does not exist or is not unreadable.</DL></DD></DL><HR><A NAME="testCompressedARCFile(java.io.File, boolean)"><!-- --></A><H3>testCompressedARCFile</H3><PRE>public static boolean <B>testCompressedARCFile</B>(java.io.File arcFile, boolean skipSuffixCheck) throws java.io.IOException</PRE><DL><DD>Check file is compressed and in ARC GZIP format.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test if its Internet Archive ARC file GZIP compressed.<DD><CODE>skipSuffixCheck</CODE> - Set to true if we're not to test on the '.arc.gz' suffix.<DT><B>Returns:</B><DD>True if this is an Internet Archive GZIP'd ARC file (It begins w/ the Internet Archive GZIP header).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If file does not exist or is not unreadable.</DL></DD></DL><HR><A NAME="testCompressedARCStream(java.io.InputStream)"><!-- --></A><H3>testCompressedARCStream</H3><PRE>public static boolean <B>testCompressedARCStream</B>(java.io.InputStream is) throws java.io.IOException</PRE><DL><DD>Tests passed stream is gzip stream by reading in the HEAD. Does not reposition the stream. That is left up to the caller.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - An InputStream.<DT><B>Returns:</B><DD>True if compressed stream.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="testCompressedRepositionalStream(it.unimi.dsi.fastutil.io.RepositionableStream)"><!-- --></A><H3>testCompressedRepositionalStream</H3><PRE>public static boolean <B>testCompressedRepositionalStream</B>(it.unimi.dsi.fastutil.io.RepositionableStream rs) throws java.io.IOException</PRE><DL><DD>Tests passed stream is gzip stream by reading in the HEAD. Does reposition of stream when done.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rs</CODE> - An InputStream that is Repositionable.<DT><B>Returns:</B><DD>True if compressed stream.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="testCompressedStream(java.io.InputStream)"><!-- --></A><H3>testCompressedStream</H3><PRE>public static boolean <B>testCompressedStream</B>(java.io.InputStream is) throws java.io.IOException</PRE><DL><DD>Tests passed stream is gzip stream by reading in the HEAD. Does reposition of stream when done.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - An InputStream.<DT><B>Returns:</B><DD>True if compressed stream.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="testUncompressedARCFile(java.io.File)"><!-- --></A><H3>testUncompressedARCFile</H3><PRE>public static boolean <B>testUncompressedARCFile</B>(java.io.File arcFile) throws java.io.IOException</PRE><DL><DD>Check file is uncompressed ARC file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arcFile</CODE> - File to test if its Internet Archive ARC file uncompressed.<DT><B>Returns:</B><DD>True if this is an Internet Archive ARC file.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If file does not exist or is not unreadable.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ARCUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/archive/io/arc/ARCRecordMetaData.html" title="class in org.archive.io.arc"><B>PREV CLASS</B></A> <A HREF="../../../../org/archive/io/arc/ARCWriter.html" title="class in org.archive.io.arc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/archive/io/arc/ARCUtils.html" target="_top"><B>FRAMES</B></A> <A HREF="ARCUtils.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 2003-2006 Internet Archive. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -