org.tranche.project
Class ProjectFileUtil

java.lang.Object
  extended by org.tranche.project.ProjectFileUtil

public class ProjectFileUtil
extends java.lang.Object

Utilities for working with a project file.

Author:
Jayson Falkner - jfalkner@umich.edu, James "Augie" Hill - augman85@gmail.com

Constructor Summary
ProjectFileUtil()
           
 
Method Summary
static ProjectFile read(java.io.InputStream is)
          Reads a project file object from an input stream created from a project file.
static DiskBackedProjectFilePartSet readParts(java.io.InputStream is)
          Reads the parts from an input stream created from a project file.
static void write(ProjectFile pf, java.io.OutputStream out)
          Writes a project file object to an output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFileUtil

public ProjectFileUtil()
Method Detail

read

public static ProjectFile read(java.io.InputStream is)
                        throws java.io.IOException

Reads a project file object from an input stream created from a project file.

Parameters:
is -
Returns:
Throws:
java.io.IOException

readParts

public static DiskBackedProjectFilePartSet readParts(java.io.InputStream is)
                                              throws java.io.IOException

Reads the parts from an input stream created from a project file.

Parameters:
is -
Returns:
Throws:
java.io.IOException

write

public static void write(ProjectFile pf,
                         java.io.OutputStream out)
                  throws java.io.IOException

Writes a project file object to an output stream.

Parameters:
pf -
out -
Throws:
java.io.IOException


This code is free for use both commercially and non-commercially as stated in the project's license