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 intDEFAULT_BUFFER_CAPACITYprivate java.nio.CharBuffermyCharBufferprivate java.nio.charset.CharsetDecodermyDecoderprivate java.nio.charset.CharsetEncodermyEncoderprivate java.nio.ByteBuffermyInputByteBuffer
-
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.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)SVNCharsetConvertorreset()private static voidthrowException(java.nio.charset.CoderResult result)java.lang.StringtoString()
-
-
-
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
-
-
Method Detail
-
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:
toStringin classjava.lang.Object
-
-