Java????????????????
???????????? ???????[ 2015/1/7 10:34:57 ] ????????Java ?????
??????????????????????????????????±?????????????Щ???????????CPU????????????????????
???????н??б??????У?
????JDK GZIP ——????????????????????????????????????????á?JDK?е?java.util.zip.GZIPInputStream / GZIPOutputStream???????????????
????JDK deflate ——????JDK?е??????????zip?????????????????????gzip?????????????????????????????????????????????????????????С??????????????????0??????????????1(???????)??9??????????????????????java.util.zip.DeflaterOutputStream / InflaterInputStream??
????LZ4???????Java???——??????????????????????????????????deflate??????????????????????????????????????????????????????????????????????????Apache 2.0???????????
????Snappy——????Google???????????????е????????????????????????????????????????????????????????????????????Apache 2.0???????????
???????????
??????????Щ??????????????????????????????Java?????????????У???????????????????????????????????????????????????????????????????????????????????????????JDK?????????????????javadoc???????????????????——??????????????????tar???????????????????????????????Linux??????????д?????????????????????
public class InputGenerator {
private static final String JAVADOC_PATH = "your_path_to_JDK/docs";
public static final File FILE_PATH = new File( "your_output_file_path" );
static
{
try {
if ( !FILE_PATH.exists() )
makeJavadocFile();
} catch (IOException e) {
e.printStackTrace();
}
}
private static void makeJavadocFile() throws IOException {
try( OutputStream os = new BufferedOutputStream( new FileOutputStream( FILE_PATH )?? 65536 ) )
{
appendDir(os?? new File( JAVADOC_PATH ));
}
System.out.println( "Javadoc file created" );
}
private static void appendDir( final OutputStream os?? final File root ) throws IOException {
for ( File f : root.listFiles() )
{
if ( f.isDirectory() )
appendDir( os?? f );
else
Files.copy(f.toPath()?? os);
}
}
}
|
????????????????????????С??354??509??602????338MB????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11