Package org.jcodings.transcode
Class Transcoding
- java.lang.Object
-
- org.jcodings.transcode.Transcoding
-
- All Implemented Interfaces:
TranscodingInstruction
public class Transcoding extends java.lang.Object implements TranscodingInstruction
-
-
Field Summary
Fields Modifier and Type Field Description private int
charStart
private byte[]
charStartBytes
(package private) int
flags
(package private) byte[]
inBytes
(package private) int
inCharStart
(package private) int
inP
(package private) Ptr
inPos
(package private) int
inStop
(package private) byte
nextByte
(package private) int
nextInfo
(package private) int
nextTable
(package private) int
opt
(package private) byte[]
outBytes
(package private) int
outP
(package private) Ptr
outPos
(package private) int
outputIndex
(package private) int
outStop
(package private) int
readAgainL
(package private) int
readAgainLength
(package private) byte[]
readBuf
(package private) int
recognizedLength
(package private) int
resumePosition
(package private) byte[]
state
(package private) Transcoder
transcoder
(package private) byte[]
writeBuf
(package private) int
writeBuffLen
(package private) int
writeBuffOff
-
Fields inherited from interface org.jcodings.transcode.TranscodingInstruction
FOURbt, FUNii, FUNio, FUNsi, FUNsio, FUNso, GB4bt, INVALID, LAST, NOMAP, NOMAP_RESUME_1, ONEbt, STR1, THREEbt, TWObt, UNDEF, ZERObt, ZeroXResume_1, ZeroXResume_2
-
-
Constructor Summary
Constructors Constructor Description Transcoding(Transcoder transcoder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
charStart()
(package private) void
close()
(package private) EConvResult
convert(byte[] in, Ptr inPtr, int inStop, byte[] out, Ptr outPtr, int outStop, int flags)
static int
getGB4bt0(int a)
static int
getGB4bt1(int a)
static int
getGB4bt2(int a)
static int
getGB4bt3(int a)
private EConvResult
suspend(int num)
private EConvResult
suspend(EConvResult ret, int num)
private boolean
suspendAfterOutput()
java.lang.String
toString()
private EConvResult
transcodeInstruction_NoMap()
private EConvResult
transcodeInstruction_NoMap_resume_3()
private EConvResult
transcodeRestartable(byte[] in, Ptr inStart, int intStop, byte[] out, Ptr outStart, int outStop, int opt)
private EConvResult
transcodeRestartable0(byte[] in, Ptr inStart, int intStop, byte[] out, Ptr outStart, int outStop, int opt)
private EConvResult
transcodeSwitch()
-
-
-
Field Detail
-
transcoder
final Transcoder transcoder
-
flags
int flags
-
resumePosition
int resumePosition
-
nextTable
int nextTable
-
nextInfo
int nextInfo
-
nextByte
byte nextByte
-
outputIndex
int outputIndex
-
recognizedLength
int recognizedLength
-
readAgainLength
int readAgainLength
-
readBuf
final byte[] readBuf
-
writeBuffOff
int writeBuffOff
-
writeBuffLen
int writeBuffLen
-
writeBuf
final byte[] writeBuf
-
state
byte[] state
-
charStart
private int charStart
-
charStartBytes
private byte[] charStartBytes
-
inCharStart
int inCharStart
-
inBytes
byte[] inBytes
-
outBytes
byte[] outBytes
-
inP
int inP
-
outP
int outP
-
outStop
int outStop
-
inStop
int inStop
-
inPos
Ptr inPos
-
outPos
Ptr outPos
-
readAgainL
int readAgainL
-
opt
int opt
-
-
Constructor Detail
-
Transcoding
public Transcoding(Transcoder transcoder)
-
-
Method Detail
-
close
void close()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
charStart
int charStart()
-
convert
EConvResult convert(byte[] in, Ptr inPtr, int inStop, byte[] out, Ptr outPtr, int outStop, int flags)
-
transcodeRestartable
private EConvResult transcodeRestartable(byte[] in, Ptr inStart, int intStop, byte[] out, Ptr outStart, int outStop, int opt)
-
transcodeRestartable0
private EConvResult transcodeRestartable0(byte[] in, Ptr inStart, int intStop, byte[] out, Ptr outStart, int outStop, int opt)
-
transcodeSwitch
private EConvResult transcodeSwitch()
-
transcodeInstruction_NoMap
private EConvResult transcodeInstruction_NoMap()
-
transcodeInstruction_NoMap_resume_3
private EConvResult transcodeInstruction_NoMap_resume_3()
-
suspend
private EConvResult suspend(EConvResult ret, int num)
-
suspend
private EConvResult suspend(int num)
-
suspendAfterOutput
private boolean suspendAfterOutput()
-
getGB4bt0
public static int getGB4bt0(int a)
-
getGB4bt1
public static int getGB4bt1(int a)
-
getGB4bt2
public static int getGB4bt2(int a)
-
getGB4bt3
public static int getGB4bt3(int a)
-
-