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 intprivate java.nio.CharBufferprivate java.nio.charset.CharsetDecoderprivate java.nio.charset.CharsetEncoderprivate java.nio.ByteBuffer -
Constructor Summary
ConstructorsConstructorDescriptionSVNCharsetConvertor(java.nio.charset.CharsetDecoder decoder, java.nio.charset.CharsetEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptionprivate static java.nio.ByteBufferallocate(java.nio.ByteBuffer buffer, int length) private static java.nio.CharBufferallocate(java.nio.CharBuffer buffer, int length) java.nio.ByteBufferconvertChunk(byte[] b, int offset, int length, java.nio.ByteBuffer dst, boolean endOfInput) java.nio.ByteBufferflush(java.nio.ByteBuffer dst) reset()private static voidthrowException(java.nio.charset.CoderResult result) java.lang.StringtoString()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:
toStringin classjava.lang.Object
-