Class SVNCharsetConvertor

java.lang.Object
org.tmatesoft.svn.core.internal.util.SVNCharsetConvertor

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

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
    private java.nio.CharBuffer
     
    private java.nio.charset.CharsetDecoder
     
    private java.nio.charset.CharsetEncoder
     
    private java.nio.ByteBuffer
     
  • Constructor Summary

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

    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)
     
     
    private static void
    throwException(java.nio.charset.CoderResult result)
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

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

    • DEFAULT_BUFFER_CAPACITY

      private static final int DEFAULT_BUFFER_CAPACITY
      See Also:
    • 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 Details

    • SVNCharsetConvertor

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

    • reset

      public SVNCharsetConvertor reset()
    • convertChunk

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

      public java.nio.ByteBuffer flush(java.nio.ByteBuffer dst) 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