|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.net.LocalWeb
public class LocalWeb
LocalWeb represents a website based on the local file system.
| Field Summary | |
|---|---|
static org.jscience.net.LocalWeb.HTMLFileFilter |
htmlFilter
|
static org.jscience.net.LocalWeb.ImageFileFilter |
imageFilter
|
| Constructor Summary | |
|---|---|
LocalWeb(java.io.File webDir,
java.io.File webRoot)
the webRoot must exist and be within the webDir |
|
| Method Summary | |
|---|---|
long |
calculateAccessibleWebSize()
|
java.io.File[] |
filesContainingLink(java.net.URL link)
|
java.io.File[] |
filesContainingLinks(java.net.URL[] link)
|
java.net.URL[] |
findBrokenLinks()
finds links to URLs that are not accessible |
java.io.File[] |
findBrokenLocalLinks()
finds links to local files that do not exist |
java.io.File[] |
findLinksTo(java.io.File file)
|
java.io.File[] |
findLocalLinksOutsideDir()
checks whether any linked local files are outside the web directory |
java.io.File[] |
findOrphans()
|
java.io.File[] |
getDataFiles()
|
java.lang.String[] |
getFileTypes()
|
java.io.File[] |
getHTMLFiles()
|
java.io.File[] |
getImageFiles()
|
java.io.File[] |
getLinkedFiles()
returns a set of all files all files within this web that are accessible from the root |
java.io.File[] |
getLinkedFiles(java.io.File file)
returns a set of all files within this web that are accessible from the given file. |
ExtendedFile |
getWebDir()
|
ExtendedFile |
getWebRoot()
|
static java.io.File |
toFile(java.net.URL url)
returns the canonical file or null if the URL doesn't point to a valid file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.jscience.net.LocalWeb.HTMLFileFilter htmlFilter
public static final org.jscience.net.LocalWeb.ImageFileFilter imageFilter
| Constructor Detail |
|---|
public LocalWeb(java.io.File webDir,
java.io.File webRoot)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException| Method Detail |
|---|
public ExtendedFile getWebRoot()
public ExtendedFile getWebDir()
public java.io.File[] getLinkedFiles()
throws java.io.IOException
java.io.IOException
public long calculateAccessibleWebSize()
throws java.io.IOException
java.io.IOException
public java.io.File[] findLocalLinksOutsideDir()
throws java.io.IOException
java.io.IOException
public java.io.File[] getLinkedFiles(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File[] getHTMLFiles()
public java.io.File[] getImageFiles()
public java.io.File[] getDataFiles()
public java.lang.String[] getFileTypes()
public java.io.File[] findOrphans()
throws java.io.IOException
java.io.IOExceptionpublic java.io.File[] filesContainingLink(java.net.URL link)
public java.io.File[] filesContainingLinks(java.net.URL[] link)
public java.net.URL[] findBrokenLinks()
public java.io.File[] findBrokenLocalLinks()
public java.io.File[] findLinksTo(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.File toFile(java.net.URL url)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||