open static fun contentEquals(input1: InputStream!, input2: InputStream!): Boolean
Compare the contents of two Streams to determine if they are equal or not.
This method buffers the input internally using BufferedInputStream
if they are not already buffered.
input1
- InputStream!: the first stream
input2
- InputStream!: the second stream
NullPointerException
- if either input is null
IOException
- if an I/O error occurs
Return
Boolean: true if the content of the streams are equal or they both don't exist, false otherwise
open static fun contentEquals(input1: Reader!, input2: Reader!): Boolean
Compare the contents of two Readers to determine if they are equal or not.
This method buffers the input internally using BufferedReader
if they are not already buffered.
input1
- Reader!: the first reader
input2
- Reader!: the second reader
NullPointerException
- if either input is null
IOException
- if an I/O error occurs
Return
Boolean: true if the content of the readers are equal or they both don't exist, false otherwise
Since
Commons IO 1.1