Package org.apache.axiom.testutils.io
Class CharacterStreamComparator
- java.lang.Object
-
- java.io.Writer
-
- org.apache.axiom.testutils.io.CharacterStreamComparator
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class CharacterStreamComparator extends Writer
-
-
Constructor Summary
Constructors Constructor Description CharacterStreamComparator(Reader in)Deprecated.CharacterStreamComparator(Reader in, String name1, String name2)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] buffer, int off, int len)
-
-
-
Constructor Detail
-
CharacterStreamComparator
public CharacterStreamComparator(Reader in, String name1, String name2)
Constructor.- Parameters:
in- the stream to compare toname1- the name of the stream passed as argument; used in error messagesname2- a name for the stream represented by the data written to this instance; used in error messages
-
CharacterStreamComparator
@Deprecated public CharacterStreamComparator(Reader in)
Deprecated.
-
-
Method Detail
-
write
public void write(char[] buffer, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-