|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.io.Decoder
The Decoder
is a class to decode a file in some
compression or cryption. In general, it unzips the file
automatically when the file name ends with .gz.
Constructor Summary | |
Decoder()
|
Method Summary | |
static java.lang.String[] |
getCompressedExtensions()
Returns the list of supported file extensions of compressed files. |
static java.io.File |
newFile(java.lang.String path)
Creates a new file object for the specified path. |
static java.io.DataInputStream |
newInputStream(java.io.File file)
Creates a new input stream. |
private static java.io.InputStream |
newInputStream(java.lang.String name,
java.io.InputStream stream)
Creates a new input stream. |
static java.io.DataInputStream |
newInputStream(java.net.URL url)
Creates a new input stream. |
static java.io.BufferedReader |
newReader(java.io.File file)
Creates a new reader. |
static java.io.BufferedReader |
newReader(java.net.URL url)
Creates a new reader. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Decoder()
Method Detail |
public static final java.lang.String[] getCompressedExtensions()
public static final java.io.File newFile(java.lang.String path)
path
- the path of a file.public static final java.io.DataInputStream newInputStream(java.io.File file) throws java.io.IOException, java.io.FileNotFoundException
file
- the file.public static final java.io.BufferedReader newReader(java.io.File file) throws java.io.IOException, java.io.FileNotFoundException
file
- the file.public static final java.io.DataInputStream newInputStream(java.net.URL url) throws java.io.IOException
url
- the URL.public static final java.io.BufferedReader newReader(java.net.URL url) throws java.io.IOException
url
- the URL.private static final java.io.InputStream newInputStream(java.lang.String name, java.io.InputStream stream) throws java.io.IOException
name
- the name of the file or URL.stream
- the primitive input stream.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |