Class SVNCharsetInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.tmatesoft.svn.core.internal.util.SVNCharsetInputStream
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

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

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
     
    private java.nio.ByteBuffer
     
    private boolean
     
    private byte[]
     

    Fields inherited from class java.io.FilterInputStream

    in
  • 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

    Modifier and Type
    Method
    Description
    private int
     
    int
     
    int
    read(byte[] b)
     
    int
    read(byte[] b, int off, int len)
     
    java.lang.String
     

    Methods inherited from class java.io.FilterInputStream

    available, close, mark, markSupported, reset, skip

    Methods inherited from class java.io.InputStream

    nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo

    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:
    • myCharsetConvertor

      private SVNCharsetConvertor myCharsetConvertor
    • mySourceBuffer

      private byte[] mySourceBuffer
    • myConvertedBuffer

      private java.nio.ByteBuffer myConvertedBuffer
    • myEndOfStream

      private boolean myEndOfStream
  • Constructor Details

    • 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 Details

    • 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