org.apache.maven.wagon
Class OutputStreamMock

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.maven.wagon.OutputStreamMock
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class OutputStreamMock
extends java.io.OutputStream

Version:
$Id: OutputStreamMock.java 573459 2007-09-07 05:14:49Z brett $
Author:
Michal Maczka

Constructor Summary
OutputStreamMock()
           
 
Method Summary
 void close()
           
 boolean isClosed()
           
 boolean isForcedError()
           
 void setForcedError(boolean forcedError)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamMock

public OutputStreamMock()
Method Detail

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException
See Also:
OutputStream.write(int)

isClosed

public boolean isClosed()
Returns:
Returns the closed.

isForcedError

public boolean isForcedError()
Returns:
Returns the forcedError.

setForcedError

public void setForcedError(boolean forcedError)
Parameters:
forcedError - The forcedError to set.


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.