com.svincent.util
Class IoUtil

java.lang.Object
  |
  +--com.svincent.util.IoUtil

public class IoUtil
extends java.lang.Object

Implements various I/O utility methods. In particular, given an URL, it will open either a Reader or an InputStream on that URL, isolating you from knowledge of whether it's local or remote, etc.


Constructor Summary
IoUtil()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.lang.String normalizeUri(java.lang.String uri)
          Normalize an URI (turn into a valid URI)
static java.io.InputStream openInputUri(java.lang.String uriStr)
          Open an InputStream on the given URI.
static java.io.OutputStream openOutputUri(java.lang.String uriStr, boolean append)
          Open an OutputStream on the given URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtil

public IoUtil()
Method Detail

normalizeUri

public static java.lang.String normalizeUri(java.lang.String uri)
Normalize an URI (turn into a valid URI)

openInputUri

public static java.io.InputStream openInputUri(java.lang.String uriStr)
                                        throws java.io.IOException
Open an InputStream on the given URI.

openOutputUri

public static java.io.OutputStream openOutputUri(java.lang.String uriStr,
                                                 boolean append)
                                          throws java.io.IOException
Open an OutputStream on the given URI.

main

public static void main(java.lang.String[] args)



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.