Class EConv

  • All Implemented Interfaces:
    EConvFlags

    public final class EConv
    extends java.lang.Object
    implements EConvFlags
    • Field Detail

      • flags

        int flags
      • source

        public byte[] source
      • destination

        public byte[] destination
      • started

        boolean started
      • replacementString

        public byte[] replacementString
      • replacementLength

        public int replacementLength
      • replacementEncoding

        public byte[] replacementEncoding
      • numTranscoders

        public int numTranscoders
      • numFinished

        int numFinished
      • sourceEncoding

        public Encoding sourceEncoding
      • destinationEncoding

        public Encoding destinationEncoding
      • NULL_STRING

        static final byte[] NULL_STRING
      • NULL_POINTER

        static final int[] NULL_POINTER
    • Constructor Detail

      • EConv

        EConv​(int nHint)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • decorator

        static boolean decorator​(byte[] source,
                                 byte[] destination)
      • addTranscoderAt

        void addTranscoderAt​(Transcoder transcoder,
                             int i)
      • transSweep

        private int transSweep​(byte[] in,
                               Ptr inPtr,
                               int inStop,
                               byte[] out,
                               Ptr outPtr,
                               int outStop,
                               int flags,
                               int start)
      • transConv

        private EConvResult transConv​(byte[] in,
                                      Ptr inPtr,
                                      int inStop,
                                      byte[] out,
                                      Ptr outPtr,
                                      int outStop,
                                      int flags,
                                      Ptr resultPositionPtr)
      • transConvNeedReport

        private EConvResult transConvNeedReport​(byte[] in,
                                                Ptr inPtr,
                                                int inStop,
                                                byte[] out,
                                                Ptr outPtr,
                                                int outStop,
                                                int flags,
                                                Ptr resultPositionPtr,
                                                int sweepStart,
                                                int needReportIndex)
      • convertInternal

        private EConvResult convertInternal​(byte[] in,
                                            Ptr inPtr,
                                            int inStop,
                                            byte[] out,
                                            Ptr outPtr,
                                            int outStop,
                                            int flags)
      • convert

        public EConvResult convert​(byte[] in,
                                   Ptr inPtr,
                                   int inStop,
                                   byte[] out,
                                   Ptr outPtr,
                                   int outStop,
                                   int flags)
      • outputHexCharref

        private int outputHexCharref()
      • encodingToInsertOutput

        public byte[] encodingToInsertOutput()
      • allocateConvertedString

        private static byte[] allocateConvertedString​(byte[] source,
                                                      byte[] destination,
                                                      byte[] str,
                                                      int strP,
                                                      int strLen,
                                                      byte[] callerDstBuf,
                                                      Ptr dstLenPtr)
      • 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)
      • decorateAt

        boolean decorateAt​(byte[] decorator,
                           int n)
      • decorateAtFirst

        boolean decorateAtFirst​(byte[] decorator)
      • decorateAtLast

        boolean decorateAtLast​(byte[] decorator)
      • binmode

        public void binmode()
      • makeReplacement

        public int makeReplacement()
      • setReplacement

        public int setReplacement​(byte[] str,
                                  int p,
                                  int len,
                                  byte[] encname)
      • outputReplacementCharacter

        int outputReplacementCharacter()
      • toStringFull

        public java.lang.String toStringFull()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • memcmp

        private static boolean memcmp​(byte[] a,
                                      byte[] b,
                                      int len)