org.mockftpserver.core.util
Class IoUtil

java.lang.Object
  extended by org.mockftpserver.core.util.IoUtil

public class IoUtil
extends Object

Contains static I/O-related utility methods.

Version:
$Revision: 182 $ - $Date: 2008-11-30 21:37:49 -0500 (Sun, 30 Nov 2008) $
Author:
Chris Mair

Method Summary
static byte[] readBytes(InputStream input)
          Read the contents of the InputStream and return as a byte[].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readBytes

public static byte[] readBytes(InputStream input)
                        throws IOException
Read the contents of the InputStream and return as a byte[].

Parameters:
input - - the InputStream to read
Returns:
the contents of the InputStream as a byte[]
Throws:
AssertFailedException - - if the InputStream is null
IOException - - if an error occurs reading the bytes


Copyright © 2014. All rights reserved.