@ Override public void setBinaryStream ( int parameterIndex , InputStream inputStream , long length ) throws SQLException { if ( length > Integer . MAX_VALUE ) { throw new SQLException ( "SQLDroid does not allow input stream data greater than " + Integer . MAX_VALUE ) ; } setBinaryStream ( parameterIndex , inputStream , ( int ) length ) ; }
This is a pass through to the integer version of the same method . That is the long is downcast to an integer . If the length is greater than Integer . MAX_VALUE this method will throw a SQLException .