Class SqlInputStreamWrapper


  • public class SqlInputStreamWrapper
    extends Object
    InputStream wrapper used to pass it as argument to PreparedStatement.
    • Constructor Detail

      • SqlInputStreamWrapper

        public SqlInputStreamWrapper​(InputStream stream,
                                     int len)
        Parameters:
        stream - Input stream.
        len - Length of data in the input stream. -1 if unknown.
      • SqlInputStreamWrapper

        public SqlInputStreamWrapper​(InputStream stream)
        Parameters:
        stream - Input stream.
    • Method Detail

      • inputStream

        public InputStream inputStream()
        Returns input stream for the enclosed data.
        Returns:
        Input stream.
      • length

        public int length()
        Returns:
        Length of data in the input stream.