|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.update.model.UpdateInstallation
public class UpdateInstallation
A platform installation that can be used as either a source or destination for Update.
Copyright 2010 Partner Software, Inc.
| Constructor Summary | |
|---|---|
UpdateInstallation(java.lang.String urlOrFilePath)
|
|
| Method Summary | |
|---|---|
java.io.BufferedReader |
createBufferedReaderFor(java.lang.String path)
|
java.io.BufferedWriter |
createBufferedWriterFor(java.lang.String path)
|
java.io.InputStream |
createInputStreamFor(java.lang.String path)
|
java.io.OutputStream |
createOutputStreamFor(java.lang.String path)
|
java.io.PrintWriter |
createPrintWriterFor(java.lang.String path)
|
java.io.File |
fileFor(java.lang.String path)
|
java.io.File |
getBaseDirectory()
|
java.net.URL |
getBaseUrl()
|
boolean |
isLocked()
|
void |
lock(java.lang.String explanation)
|
static void |
makeAbsolutelySureItAintA3xInstall(java.io.File installDir)
|
void |
move(java.lang.String fromPath,
java.lang.String toPath)
|
java.lang.String |
readFirstLineFrom(java.lang.String path)
Reads just the first line from the file at the given path. |
java.util.Map |
readInstalledPackages()
|
UpdateInstallType |
readInstallType()
|
java.util.List |
readLinesFrom(java.lang.String path)
Reads all lines from the file at the given path, returns them as a List of Strings. |
long |
readLongFrom(java.lang.String path)
Reads the first line from the file at the given path and forces it to a long. |
java.util.Map |
readUpdateChain()
|
void |
remove(java.io.File fileOrDirectory)
Removes the file or directory for the given File object, and all contents and subdirectories. |
void |
remove(java.lang.String path)
Removes the file or directory specified by the given path, and all contents and subdirectories. |
java.lang.String |
toString()
|
void |
unlock()
|
java.net.URL |
urlFor(java.lang.String path)
|
void |
writeInstallType(UpdateInstallType installType)
|
void |
writeLinesTo(java.util.Collection lines,
java.lang.String path)
Writes lines of text to the given file. |
void |
writeLineTo(java.lang.String line,
java.lang.String path)
Writes a single line of text to the given file. |
void |
writeLongTo(long value,
java.lang.String path)
Writes the given long to the file at the given path. |
void |
writeUpdateChain(java.util.Map updateChain)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateInstallation(java.lang.String urlOrFilePath)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public UpdateInstallType readInstallType()
throws java.io.IOException
java.io.IOException
public void writeInstallType(UpdateInstallType installType)
throws java.io.IOException
java.io.IOException
public java.util.Map readInstalledPackages()
throws java.io.IOException
java.io.IOException
public java.util.Map readUpdateChain()
throws java.io.IOException
java.io.IOException
public void writeUpdateChain(java.util.Map updateChain)
throws java.io.IOException
java.io.IOException
public java.net.URL urlFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.File fileFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.InputStream createInputStreamFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.BufferedReader createBufferedReaderFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.OutputStream createOutputStreamFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.BufferedWriter createBufferedWriterFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.PrintWriter createPrintWriterFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.lang.String readFirstLineFrom(java.lang.String path)
throws java.io.IOException
java.io.IOException
public long readLongFrom(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void writeLongTo(long value,
java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.util.List readLinesFrom(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void writeLineTo(java.lang.String line,
java.lang.String path)
throws java.io.IOException
java.io.IOException
public void writeLinesTo(java.util.Collection lines,
java.lang.String path)
throws java.io.IOException
java.io.IOException
public static void makeAbsolutelySureItAintA3xInstall(java.io.File installDir)
throws java.io.IOException
java.io.IOException
public void remove(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void remove(java.io.File fileOrDirectory)
throws java.io.IOException
java.io.IOException
public void lock(java.lang.String explanation)
throws java.io.IOException
java.io.IOException
public void unlock()
throws java.io.IOException
java.io.IOException
public boolean isLocked()
throws java.io.IOException
java.io.IOException
public void move(java.lang.String fromPath,
java.lang.String toPath)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.net.URL getBaseUrl()
public java.io.File getBaseDirectory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||