com.threerings.jpkg.debian
Class FileMaintainerScript
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileMaintainerScript
public FileMaintainerScript(MaintainerScript.Type type,
File file)
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.