- java.lang.Object
-
- org.jcodings.transcode.EConv
-
- All Implemented Interfaces:
EConvFlags
public final class EConv extends Object implements EConvFlags
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEConv.EConvElementstatic classEConv.LastError
-
Field Summary
Fields Modifier and Type Field Description byte[]destinationEncodingdestinationEncodingEConv.EConvElement[]elementsEConv.LastErrorlastErrorTranscodinglastTranscodingintnumTranscodersbyte[]replacementEncodingintreplacementLengthbyte[]replacementStringbyte[]sourceEncodingsourceEncoding-
Fields inherited from interface org.jcodings.transcode.EConvFlags
AFTER_OUTPUT, CR_NEWLINE_DECORATOR, CRLF_NEWLINE_DECORATOR, DECORATOR_MASK, ERROR_HANDLER_MASK, INVALID_MASK, INVALID_REPLACE, MAX_ECFLAGS_DECORATORS, NEWLINE_DECORATOR_MASK, NEWLINE_DECORATOR_READ_MASK, NEWLINE_DECORATOR_WRITE_MASK, PARTIAL_INPUT, STATEFUL_DECORATOR_MASK, UNDEF_HEX_CHARREF, UNDEF_MASK, UNDEF_REPLACE, UNIVERSAL_NEWLINE_DECORATOR, XML_ATTR_CONTENT_DECORATOR, XML_ATTR_QUOTE_DECORATOR, XML_TEXT_DECORATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddConverter(byte[] source, byte[] destination, int n)voidbinmode()voidclose()EConvResultconvert(byte[] in, Ptr inPtr, int inStop, byte[] out, Ptr outPtr, int outStop, int flags)byte[]encodingToInsertOutput()booleanequals(Object other)intinsertOutput(byte[] str, int strP, int strLen, byte[] strEncoding)intmakeReplacement()voidputback(byte[] bytes, int p, int n)intputbackable()intsetReplacement(byte[] str, int p, int len, byte[] encname)StringtoString()StringtoStringFull()
-
-
-
Field Detail
-
source
public byte[] source
-
destination
public byte[] destination
-
replacementString
public byte[] replacementString
-
replacementLength
public int replacementLength
-
replacementEncoding
public byte[] replacementEncoding
-
elements
public EConv.EConvElement[] elements
-
numTranscoders
public int numTranscoders
-
lastTranscoding
public Transcoding lastTranscoding
-
lastError
public final EConv.LastError lastError
-
sourceEncoding
public Encoding sourceEncoding
-
destinationEncoding
public Encoding destinationEncoding
-
-
Method Detail
-
convert
public EConvResult convert(byte[] in, Ptr inPtr, int inStop, byte[] out, Ptr outPtr, int outStop, int flags)
-
encodingToInsertOutput
public byte[] encodingToInsertOutput()
-
insertOutput
public int insertOutput(byte[] str, int strP, int strLen, byte[] strEncoding)
-
close
public void close()
-
putbackable
public int putbackable()
-
putback
public void putback(byte[] bytes, int p, int n)
-
addConverter
public boolean addConverter(byte[] source, byte[] destination, int n)
-
binmode
public void binmode()
-
makeReplacement
public int makeReplacement()
-
setReplacement
public int setReplacement(byte[] str, int p, int len, byte[] encname)
-
toStringFull
public String toStringFull()
-
-