Class SVNCharsetConvertor


  • public class SVNCharsetConvertor
    extends java.lang.Object
    Version:
    1.3
    • Constructor Summary

      Constructors 
      Constructor Description
      SVNCharsetConvertor​(java.nio.charset.CharsetDecoder decoder, java.nio.charset.CharsetEncoder encoder)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.nio.ByteBuffer allocate​(java.nio.ByteBuffer buffer, int length)  
      private static java.nio.CharBuffer allocate​(java.nio.CharBuffer buffer, int length)  
      java.nio.ByteBuffer convertChunk​(byte[] b, int offset, int length, java.nio.ByteBuffer dst, boolean endOfInput)  
      java.nio.ByteBuffer flush​(java.nio.ByteBuffer dst)  
      SVNCharsetConvertor reset()  
      private static void throwException​(java.nio.charset.CoderResult result)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_BUFFER_CAPACITY

        private static final int DEFAULT_BUFFER_CAPACITY
        See Also:
        Constant Field Values
      • myDecoder

        private java.nio.charset.CharsetDecoder myDecoder
      • myEncoder

        private java.nio.charset.CharsetEncoder myEncoder
      • myCharBuffer

        private java.nio.CharBuffer myCharBuffer
      • myInputByteBuffer

        private java.nio.ByteBuffer myInputByteBuffer
    • Constructor Detail

      • SVNCharsetConvertor

        public SVNCharsetConvertor​(java.nio.charset.CharsetDecoder decoder,
                                   java.nio.charset.CharsetEncoder encoder)
    • Method Detail

      • convertChunk

        public java.nio.ByteBuffer convertChunk​(byte[] b,
                                                int offset,
                                                int length,
                                                java.nio.ByteBuffer dst,
                                                boolean endOfInput)
                                         throws SVNException
        Throws:
        SVNException
      • allocate

        private static java.nio.ByteBuffer allocate​(java.nio.ByteBuffer buffer,
                                                    int length)
      • allocate

        private static java.nio.CharBuffer allocate​(java.nio.CharBuffer buffer,
                                                    int length)
      • throwException

        private static void throwException​(java.nio.charset.CoderResult result)
                                    throws SVNException
        Throws:
        SVNException
      • toString

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