Class SVNCharsetInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SVNCharsetInputStream
    extends java.io.FilterInputStream
    Version:
    1.3
    • Constructor Summary

      Constructors 
      Constructor Description
      SVNCharsetInputStream​(java.io.InputStream in, java.nio.charset.Charset inputCharset, java.nio.charset.Charset outputCharset, java.nio.charset.CodingErrorAction malformedInputAction, java.nio.charset.CodingErrorAction unmappableCharAction)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private int fillBuffer()  
      int read()  
      int read​(byte[] b)  
      int read​(byte[] b, int off, int len)  
      java.lang.String toString()  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • 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
      • mySourceBuffer

        private byte[] mySourceBuffer
      • myConvertedBuffer

        private java.nio.ByteBuffer myConvertedBuffer
      • myEndOfStream

        private boolean myEndOfStream
    • Constructor Detail

      • SVNCharsetInputStream

        public SVNCharsetInputStream​(java.io.InputStream in,
                                     java.nio.charset.Charset inputCharset,
                                     java.nio.charset.Charset outputCharset,
                                     java.nio.charset.CodingErrorAction malformedInputAction,
                                     java.nio.charset.CodingErrorAction unmappableCharAction)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • fillBuffer

        private int fillBuffer()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

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