com.threerings.jpkg.debian
Class FileMaintainerScript

java.lang.Object
  extended by com.threerings.jpkg.debian.FileMaintainerScript
All Implemented Interfaces:
MaintainerScript

public class FileMaintainerScript
extends Object
implements MaintainerScript

An implementation of MaintainerScript that works with File objects.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.jpkg.debian.MaintainerScript
MaintainerScript.Type
 
Constructor Summary
FileMaintainerScript(MaintainerScript.Type type, File file)
           
 
Method Summary
 long getSize()
          Returns the number of bytes of data in the InputStream.
 InputStream getStream()
          Returns the InputStream with the script contents for this type.
 MaintainerScript.Type getType()
          Returns the MaintainerScript.Type of script this instance is.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMaintainerScript

public FileMaintainerScript(MaintainerScript.Type type,
                            File file)
Method Detail

getType

public MaintainerScript.Type getType()
Description copied from interface: MaintainerScript
Returns the MaintainerScript.Type of script this instance is.

Specified by:
getType in interface MaintainerScript

getStream

public InputStream getStream()
                      throws IOException
Description copied from interface: MaintainerScript
Returns the InputStream with the script contents for this type.

Specified by:
getStream in interface MaintainerScript
Throws:
IOException

getSize

public long getSize()
Description copied from interface: MaintainerScript
Returns the number of bytes of data in the InputStream.

Specified by:
getSize in interface MaintainerScript


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.