javalightserver.network
Class Stream

java.lang.Object
  extended by javalightserver.network.Stream

public class Stream
extends java.lang.Object


Constructor Summary
Stream()
           
 
Method Summary
static void toFile(java.io.InputStream ins, java.io.File file)
           
static int toInt(java.io.InputStream in)
           
static void toStream(java.io.OutputStream os, java.io.File file)
           
static void toStream(java.io.OutputStream os, int i)
           
static void toStream(java.io.OutputStream os, java.lang.String s)
           
static java.lang.String toString(java.io.InputStream ins)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream

public Stream()
Method Detail

toInt

public static int toInt(java.io.InputStream in)
                 throws java.io.IOException
Throws:
java.io.IOException

toString

public static java.lang.String toString(java.io.InputStream ins)
                                 throws java.io.IOException
Throws:
java.io.IOException

toStream

public static void toStream(java.io.OutputStream os,
                            int i)
                     throws java.io.IOException
Throws:
java.io.IOException

toStream

public static void toStream(java.io.OutputStream os,
                            java.lang.String s)
                     throws java.io.IOException
Throws:
java.io.IOException

toFile

public static void toFile(java.io.InputStream ins,
                          java.io.File file)
                   throws java.io.FileNotFoundException,
                          java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

toStream

public static void toStream(java.io.OutputStream os,
                            java.io.File file)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException