|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.util.YEnc
public class YEnc
Implements methods for encoding and decoding data using the YEnc specification.
Constructor Summary | |
---|---|
YEnc()
Creates a new YEnc instance. |
|
YEnc(int maxLineLength)
Creates a new YEnc instance. |
Method Summary | |
---|---|
byte[] |
decode(char[] values)
Decodes data encoded in YEnc format. |
char[] |
encode(byte[] values)
Encodes data in YEnc format. |
char[] |
encode(byte[] values,
java.lang.String name)
Encodes data in YEnc format. |
long |
getBegin()
Gets begin attribute of |
long |
getEnd()
|
java.lang.String |
getFileName()
|
long |
getLineLength()
|
int |
getMaxLineLength()
Gets maximum line length used when encoding data. |
long |
getSize()
|
void |
setMaxLineLength(int l)
Sets maximum line length used when encoding data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YEnc()
public YEnc(int maxLineLength)
maxLineLength
- the maximum line length to use when encoding data, default is 128.Method Detail |
---|
public byte[] decode(char[] values) throws java.lang.Exception
decode
in interface Codec
values
- the encoded data to decode
java.lang.Exception
- if an error occurs while decoding datapublic char[] encode(byte[] values)
encode
in interface Codec
values
- the data to encode
public char[] encode(byte[] values, java.lang.String name)
values
- the data to encodename
- the value to be used in name attribute of YEnc header, typically the filename.
public int getMaxLineLength()
public void setMaxLineLength(int l)
l
- the maximum line length;public long getBegin()
public long getEnd()
public long getLineLength()
public java.lang.String getFileName()
public long getSize()
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |