net.freeutils.tnef
public class TNEFInputStream extends Object
TNEFInputStream
class provides low-level access to
a TNEF stream.
Since: 2003-07-25
Constructor Summary | |
---|---|
TNEFInputStream(InputStream in)
Constructs a TNEFInputStream whose content is retrieved from the
given InputStream.
| |
TNEFInputStream(File file)
Constructs a TNEFInputStream whose content is retrieved from the
given File.
| |
TNEFInputStream(String filename)
Constructs a TNEFInputStream whose content is retrieved from the
given file.
|
Method Summary | |
---|---|
void | close()
Closes the TNEFInputStream and underlying InputStream.
|
int | getKey()
Returns the TNEF stream key.
|
Attr | readAttr()
Reads a TNEF attribute from the stream.
|
protected int | readU16()
Reads a 16-bit unsigned value from the stream.
|
protected long | readU32()
Reads a 32-bit unsigned value from the stream.
|
protected int | readU8()
Reads an 8-bit unsigned value from the stream.
|
Parameters: in an InputStream supplying a TNEF data stream
Throws: IOException if the input does not start with a valid TNEF signature, or if an I/O error occurs
Parameters: file a file containing a TNEF data stream
Throws: IOException if the input does not start with a valid TNEF signature, or if an I/O error occurs
Parameters: filename the fully qualified filename of a file containing a TNEF data stream
Throws: IOException if the input does not start with a valid TNEF signature, or if an I/O error occurs
Throws: IOException if an I/O error occurs
Returns: the TNEF stream key
Returns: a TNEF attribute read from the stream, or null if the stream end is reached
Throws: IOException if the stream does not contain a valid TNEF attribute, or if an I/O error occurs
Returns: a 16-bit unsigned value read from the stream
Throws: IOException if the stream end is reached, or if an I/O error occurs
Returns: a 32-bit unsigned value read from the stream
Throws: IOException if the stream end is reached, or if an I/O error occurs
Returns: an 8-bit unsigned value read from the stream
Throws: IOException if the stream end is reached, or if an I/O error occurs