Package jp.gr.java_conf.dangan.util.lha
Class LhaFile
java.lang.Object
jp.gr.java_conf.dangan.util.lha.LhaFile
LHA?????t?@?C???????G???g???f?[?^???????o??
InputStream???????????????[?e?B???e?B?N???X?B
java.util.zip.ZipFile ?????? ?C???^?[?t?F?C?X???????????????????B CRC16?????????`?F?b?N???s?????�‘?B
java.util.zip.ZipFile ?????? ?C???^?[?t?F?C?X???????????????????B CRC16?????????`?F?b?N???s?????�‘?B
-- revision history --
$Log: LhaFile.java,v $
Revision 1.1 2002/12/08 00:00:00 dangan
[maintenance]
LhaConstants ???? CompressMethod ?????N???X???????X???????????C???B
Revision 1.0 2002/08/05 00:00:00 dangan
add to version control
[improvement]
?G???g?????????? Hashtable ???g?p??????????????
???????G???g???????????????G???g???J?n???u??
?????�Ê?????????????????????????B
[change]
?R???X?g???N?^???? ?????? String encode ?????????????p?~?A
Properties ???????????????????????B
[maintanance]
?\?[?X????
?^?u?p?~
???C?Z???X?�÷???C??
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
-
Constructor Summary
ConstructorsConstructorDescriptionfilename ???w?????????t?@?C???????????f?[?^???????�}??LhaFile???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????BLhaFile(File filename, Properties property) filename ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????BLhaFile(RandomAccessFile file) file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????BLhaFile(RandomAccessFile file, boolean rescueMode) file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????BLhaFile(RandomAccessFile file, Properties property) file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????BLhaFile(RandomAccessFile file, Properties property, boolean rescueMode) file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????Bfilename ???w?????????t?@?C???????????f?[?^???????�}??LhaFile???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????BLhaFile(String filename, Properties property) filename ???w?????????t?@?C???????????f?[?^???????�}??LhaFile???\?z?????B -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()?�}?? LHA?????t?@?C???????�÷???B ???????A?�}??LhaFile?????s?????S???? InputStream?????�˜?I?????�÷???????Bentries()?�}?? LhaFile ?????G???g???? LhaHeader ???????q???????B?t?@?C???????G???g?????????????z?????????BgetInputStream(String name) name???w???????????O???????G???g???? ???e???????????????????�}???????X?g???[?????????BgetInputStream(LhaHeader header) header ???w?????????G???g???? ???e???????????????????�}???????X?g???[?????????Bname???w???????????O???????G???g???? ???e?????????????????�}???????X?g???[?????????Bheader???w?????????G???g???????e?? ???????????????�}???????X?g???[?????????Bintsize()?�}?? LhaFile ?????G???g?????????????B
-
Constructor Details
-
LhaFile
filename ???w?????????t?@?C???????????f?[?^???????�}??LhaFile???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????B- Parameters:
filename- LHA?????t?@?C???????O- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
filename ???w?????????t?@?C???????????f?[?^???????�}??LhaFile???\?z?????B- Parameters:
filename- LHA?????t?@?C???????Oproperty- ?e???k?`?????????????????????�÷?�Ê???????????????v???p?e?B- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????UnsupportedEncodingException- property.getProperty( "lha.encoding" ) ?????????? ?G???R?[?f?B???O?????T?|?[?g???????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
filename ???w?????????t?@?C???????????f?[?^???????�}??LhaFile???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????B- Parameters:
filename- LHA?????t?@?C??- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
filename ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B- Parameters:
filename- LHA?????t?@?C??property- ?e???k?`?????????????????????�÷?�Ê???????????????v???p?e?B- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????UnsupportedEncodingException- property.getProperty( "lha.encoding" ) ?????????? ?G???R?[?f?B???O?????T?|?[?g???????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????B- Parameters:
file- LHA?????t?@?C??- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B
?e???k?`?????????????????????�÷?�Ê???????????v???p?e?B???? LhaProperty.getProperties() ???????????v???p?e?B???g?p???????B- Parameters:
file- LHA?????t?@?C??rescueMode- true ?????????????????????f?[?^?? ?????????????????????[?h???G???g?????????????B- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B- Parameters:
file- LHA?????t?@?C??property- ?e???k?`?????????????????????�÷?�Ê???????????????v???p?e?B- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
LhaFile
file ???w?????????t?@?C???????????f?[?^???????�}?? LhaFile ???\?z?????B- Parameters:
file- LHA?????t?@?C??property- ?e???k?`?????????????????????�÷?�Ê???????????????v???p?e?BrescueMode- true ?????????????????????f?[?^?? ?????????????????????[?h???G???g?????????????B- Throws:
IOException- ???o???G???[?????�÷????????FileNotFoundException- ?t?@?C???????????????�‘????SecurityException- ?Z?L?????e?B?}?l?[?W?????t?@?C?????????????????????�‘????- See Also:
-
-
Method Details
-
getInputStream
header ???w?????????G???g???? ???e???????????????????�}???????X?g???[?????????B- Parameters:
header- ?w?b?_- Returns:
- header???w?????????w?b?_???????G???g????
???e???????�}???????X?g???[???B
?G???g???????????????�‘?????? null?B
-
getInputStream
name???w???????????O???????G???g???? ???e???????????????????�}???????X?g???[?????????B- Parameters:
name- ?G???g???????O- Returns:
- name???w???????????O???????G???g????
???e???????????????????�}???????X?g???[???B
?G???g???????????????�‘?????? null?B
-
getInputStreamWithoutExtract
header???w?????????G???g???????e?? ???????????????�}???????X?g???[?????????B- Parameters:
header- ?w?b?_- Returns:
- header???w?????????G???g???????e??
???????????????�}???????X?g???[???B
?G???g???????????????�‘?????? null?B
-
getInputStreamWithoutExtract
name???w???????????O???????G???g???? ???e?????????????????�}???????X?g???[?????????B- Parameters:
name- ?G???g???????O- Returns:
- name???w???????????O???????G???g????
???e?????????????????�}???????X?g???[???B
?G???g???????????????�‘?????? null?B
-
size
public int size()?�}?? LhaFile ?????G???g?????????????B- Returns:
- ?t?@?C???????G???g??????
-
entries
?�}?? LhaFile ?????G???g???? LhaHeader ???????q???????B- Returns:
- LhaHeader ???????q
- Throws:
IllegalStateException- LhaFile ?? close() ?????�÷???????�‘???????B
-
getEntries
?t?@?C???????G???g?????????????z?????????B- Returns:
- ?t?@?C???????G???g?????????????z??
-
close
?�}?? LHA?????t?@?C???????�÷???B ???????A?�}??LhaFile?????s?????S???? InputStream?????�˜?I?????�÷???????B- Throws:
IOException- ???o???G???[?????�÷????????
-