|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.myjavatools.lib.ZipInput
public class ZipInput
Title: MyJavaTools: ZippedInput
Description: Extends ZipInputStream functionality. Good for Java 1.4 and up.
Copyright: This is public domain; The right of people to use, distribute, copy or improve the contents of the following may not be restricted.
Constructor Summary | |
---|---|
ZipInput(byte[] data)
initializes ZipInput with data |
|
ZipInput(char[] data)
initializes ZipInput with data |
|
ZipInput(java.io.InputStream is)
initializes ZipInput with InputStream |
Method Summary | |
---|---|
byte[] |
getBytes()
retrieves the contents of current ZipEntry data |
java.lang.String |
getChars(java.lang.String encoding)
gets the contents of current ZipEntry data as characters |
java.util.zip.ZipEntry |
getEntry()
gets current ZipEntry |
java.lang.String |
getEntryName()
gets the name of current ZipEntry |
long |
getEntrySize()
gets the size of current entry data |
long |
getEntryTime()
gets timestamp of current zip entry |
boolean |
isEntryDirectory()
checks whether current ZipEntry is a directory |
boolean |
next()
moves to next ZipEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipInput(java.io.InputStream is)
is
- InputStream the source of datapublic ZipInput(byte[] data)
data
- byte[] the source data represented as bytespublic ZipInput(char[] data)
data
- char[] the source data represented as chars (a byte per char)Method Detail |
---|
public boolean next() throws java.io.IOException
java.io.IOException
- when there are problems reading the inputpublic java.util.zip.ZipEntry getEntry()
public java.lang.String getEntryName()
public long getEntryTime()
public long getEntrySize()
public boolean isEntryDirectory()
public byte[] getBytes() throws java.io.IOException
java.io.IOException
- if could not read the datapublic java.lang.String getChars(java.lang.String encoding) throws java.io.IOException
encoding
- String encoding to use
java.io.IOException
- when could not read the data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |