eu.scape_project.pit.invoke
Class Out

java.lang.Object
  extended by eu.scape_project.pit.invoke.Out

public class Out
extends Object

Author:
Andrew Jackson

Nested Class Summary
static class Out.Type
          Enumeration identifying the output type
 
Constructor Summary
Out(File file)
          Constructor for file based output
Out(OutputStream is)
          Constructor for output stream output
Out(URI uri)
          Constructor for ouput to a URI
 
Method Summary
 File getFile()
           
 OutputStream getOutputStream()
           
 Out.Type getType()
          Get the type of the output object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Out

public Out(OutputStream is)
Constructor for output stream output

Parameters:
is - the output stream

Out

public Out(URI uri)
Constructor for ouput to a URI

Parameters:
uri - the URI for the output

Out

public Out(File file)
Constructor for file based output

Parameters:
file - the file to output to
Method Detail

getType

public Out.Type getType()
Get the type of the output object

Returns:
enumeration identifying the output type

getFile

public File getFile()
Returns:
the output file object

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.