Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.scripting
Class ScriptFile

java.lang.Object
  extended by 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
           
 
Constructor Summary
ScriptFile(java.io.File file)
           
 
Method Summary
 java.lang.String getAbsolutePath()
           
 java.lang.String getExtension()
           
 java.io.File getFile()
           
 java.lang.String getFileName()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getRelativePath()
           
 java.lang.String getURL()
           
 boolean isTemplate()
           
 long lastModified()
           
 java.lang.String toString()
           
 java.net.URI toURI()
           
 java.net.URL toURL()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROOT_PATH

public static final java.lang.String ROOT_PATH
Constructor Detail

ScriptFile

public ScriptFile(java.io.File file)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.