jxUtil 0.6

org.sourceforge.jxutil.io
Class IOUtil

java.lang.Object
  |
  +--org.sourceforge.jxutil.io.IOUtil

public final class IOUtil
extends Object

Various routines dealing with I/O.


Constructor Summary
private IOUtil()
          Can't instantiate.
 
Method Summary
static boolean compare(File f1, File f2)
           
static boolean compare(InputStream a, InputStream b)
           
static IntRangesSet encodingCoverage(String encoding)
          Determine the unicode range(s) the given encoding can represent.
static byte[] readFully(InputStream in)
          Completely read a stream.
static void readFully(InputStream in, byte[] buf)
          Completely read a buffer.
static void readFully(Reader in, char[] buf)
          Completely read a character buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

private IOUtil()
Can't instantiate.

Method Detail

compare

public static boolean compare(File f1,
                              File f2)
                       throws IOException
IOException

compare

public static boolean compare(InputStream a,
                              InputStream b)
                       throws IOException
IOException

encodingCoverage

public static final IntRangesSet encodingCoverage(String encoding)
                                           throws UnsupportedEncodingException
Determine the unicode range(s) the given encoding can represent. The given encoding must be a one-byte encoding.

UnsupportedEncodingException

readFully

public static final byte[] readFully(InputStream in)
                              throws IOException
Completely read a stream.

IOException

readFully

public static final void readFully(InputStream in,
                                   byte[] buf)
                            throws IOException
Completely read a buffer.

IOException

readFully

public static final void readFully(Reader in,
                                   char[] buf)
                            throws IOException
Completely read a character buffer.

IOException

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.