站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

IOUtils (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.utils
Class IOUtils

java.lang.Object
  extended byorg.apache.axis.utils.IOUtils

public class IOUtils
extends Object


Constructor Summary
IOUtils()
           
 
Method Summary
static int readFully(InputStream in, byte[] b)
          Helper method, just calls readFully(in, b, 0, b.length)
static int readFully(InputStream in, byte[] b, int off, int len)
          Same as the normal in.read(b, off, len), but tries to ensure that

the entire len number of bytes is read.

static byte[] toByteArray(InputStream is)
          Copy the content of the given input stream to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

readFully

public static int readFully(InputStream in,
                            byte[] b)
                     throws IOException
Helper method, just calls readFully(in, b, 0, b.length)

Throws:
IOException

readFully

public static int readFully(InputStream in,
                            byte[] b,
                            int off,
                            int len)
                     throws IOException
Same as the normal in.read(b, off, len), but tries to ensure that

the entire len number of bytes is read.

If the end of file is reached before any bytes are read, returns -1.

Otherwise, returns the number of bytes read.

Throws:
IOException

toByteArray

public static byte[] toByteArray(InputStream is)
                          throws IOException
Copy the content of the given input stream to a byte array.

Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.