org.openjena.atlas.io
Class IO

java.lang.Object
  extended by org.openjena.atlas.io.IO

public class IO
extends java.lang.Object


Field Summary
static java.lang.String encodingAscii
           
static java.lang.String encodingUTF8
          Java name for UTF-8 encoding
static int EOF
           
static int UNSET
           
 
Constructor Summary
IO()
           
 
Method Summary
static void close(java.io.InputStream in)
           
static void close(java.io.OutputStream out)
           
static void close(java.io.Reader in)
           
static void close(java.io.Writer out)
           
static void exception(java.io.IOException ex)
           
static void flush(java.io.OutputStream out)
           
static void flush(java.io.Writer out)
           
static java.io.InputStream openFile(java.lang.String filename)
          Open an input stream to a file.
static java.io.Reader openFileASCII(java.lang.String filename)
          Open an ASCII Reader for a file.
static java.io.Reader openFileUTF8(java.lang.String filename)
          Open a UTF8 Reader for a file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOF

public static final int EOF
See Also:
Constant Field Values

UNSET

public static final int UNSET
See Also:
Constant Field Values

encodingUTF8

public static final java.lang.String encodingUTF8
Java name for UTF-8 encoding

See Also:
Constant Field Values

encodingAscii

public static final java.lang.String encodingAscii
See Also:
Constant Field Values
Constructor Detail

IO

public IO()
Method Detail

openFile

public static java.io.InputStream openFile(java.lang.String filename)
Open an input stream to a file. If the filename is null or "-", return System.in If the filename ends in .gz, wrap in GZIPInputStream


openFileUTF8

public static java.io.Reader openFileUTF8(java.lang.String filename)
Open a UTF8 Reader for a file. If the filename is null or "-", use System.in If the filename ends in .gz, use GZIPInputStream


openFileASCII

public static java.io.Reader openFileASCII(java.lang.String filename)
Open an ASCII Reader for a file. If the filename is null or "-", use System.in If the filename ends in .gz, use GZIPInputStream


close

public static void close(java.io.InputStream in)

close

public static void close(java.io.OutputStream out)

close

public static void close(java.io.Reader in)

close

public static void close(java.io.Writer out)

exception

public static void exception(java.io.IOException ex)

flush

public static void flush(java.io.OutputStream out)

flush

public static void flush(java.io.Writer out)


Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP