org.nuxeo.ecm.webengine.scripting
Class ScriptFile
java.lang.Object
org.nuxeo.ecm.webengine.scripting.ScriptFile
public final class ScriptFile
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Field Summary |
static java.lang.String |
ROOT_PATH
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ROOT_PATH
public static final java.lang.String ROOT_PATH
ScriptFile
public ScriptFile(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
isTemplate
public boolean isTemplate()
getFile
public java.io.File getFile()
getExtension
public java.lang.String getExtension()
getAbsolutePath
public java.lang.String getAbsolutePath()
getRelativePath
public java.lang.String getRelativePath()
getFileName
public java.lang.String getFileName()
getURL
public java.lang.String getURL()
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
toURL
public java.net.URL toURL()
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
toURI
public java.net.URI toURI()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
lastModified
public long lastModified()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.