org.gjt.convert.binhex
Class Hqx7_to_Hqx8InputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--org.gjt.convert.binhex.Hqx7_to_Hqx8InputStream
- public class Hqx7_to_Hqx8InputStream
- extends java.io.FilterInputStream
Converts a 7-bit encoded binhex4.0 data stream to a 8-bit encoded
data stream. The 8-bit stream still needs to be split in a data and
a resource fork, and still needs to have any Run-Length Encoded (RLE)
sequences expanded.
This class does not (yet) support segmented files. It
is however very liberal about whitespace: any is allowed. So you could cat
all segmented files together and remove the "--- end of part NN ---" and
the beginning-of-next-part identifier "---" lines from the resulting file
before decoding.
- Author:
- Erwin Bolwidt
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary |
Hqx7_to_Hqx8InputStream(java.io.InputStream source)
Constructs a Hqx7_to_Hqx8InputStream that reads from the supplied source
and converts that source to 8-bit Hqx8 without RLE expansion. |
Method Summary |
static void |
main(java.lang.String[] args)
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.FilterInputStream |
available,
close,
mark,
markSupported,
reset,
skip |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Hqx7_to_Hqx8InputStream
public Hqx7_to_Hqx8InputStream(java.io.InputStream source)
- Constructs a Hqx7_to_Hqx8InputStream that reads from the supplied source
and converts that source to 8-bit Hqx8 without RLE expansion.
read
public int read()
throws java.io.IOException
- Overrides:
- read in class java.io.FilterInputStream
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
- read in class java.io.FilterInputStream
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
- read in class java.io.FilterInputStream
main
public static void main(java.lang.String[] args)