Class SVNCharsetConvertor
java.lang.Object
org.tmatesoft.svn.core.internal.util.SVNCharsetConvertor
public class SVNCharsetConvertor
extends java.lang.Object
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private java.nio.CharBuffer
private java.nio.charset.CharsetDecoder
private java.nio.charset.CharsetEncoder
private java.nio.ByteBuffer
-
Constructor Summary
ConstructorsConstructorDescriptionSVNCharsetConvertor
(java.nio.charset.CharsetDecoder decoder, java.nio.charset.CharsetEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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) 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 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
-
convertChunk
public java.nio.ByteBuffer convertChunk(byte[] b, int offset, int length, java.nio.ByteBuffer dst, boolean endOfInput) throws SVNException - Throws:
SVNException
-
flush
- 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
- Throws:
SVNException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-