|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyCodeSource
public class GroovyCodeSource
CodeSource wrapper class that allows specific security policies to be associated with a class compiled from groovy source.
Constructor Summary | |
---|---|
GroovyCodeSource(java.io.File infile)
|
|
GroovyCodeSource(java.io.File infile,
java.lang.String encoding)
|
|
GroovyCodeSource(java.io.InputStream inputStream,
java.lang.String name,
java.lang.String codeBase)
Deprecated. Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. |
|
GroovyCodeSource(java.io.Reader reader,
java.lang.String name,
java.lang.String codeBase)
Construct a GroovyCodeSource for an inputStream of groovyCode that has an unknown provenance -- meaning it didn't come from a File or a URL (e.g. a String). |
|
GroovyCodeSource(java.lang.String script,
java.lang.String name,
java.lang.String codeBase)
|
|
GroovyCodeSource(java.net.URL url)
|
Method Summary | |
---|---|
java.io.File |
getFile()
|
java.io.InputStream |
getInputStream()
Deprecated. Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. |
java.lang.String |
getName()
|
java.lang.String |
getScriptText()
|
boolean |
isCachable()
|
void |
setCachable(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroovyCodeSource(java.lang.String script, java.lang.String name, java.lang.String codeBase)
public GroovyCodeSource(java.io.Reader reader, java.lang.String name, java.lang.String codeBase)
@Deprecated public GroovyCodeSource(java.io.InputStream inputStream, java.lang.String name, java.lang.String codeBase)
public GroovyCodeSource(java.io.File infile, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public GroovyCodeSource(java.io.File infile) throws java.io.IOException
infile
- the file to create a GroovyCodeSource for.
java.io.IOException
- if an issue arises opening and reading the file.public GroovyCodeSource(java.net.URL url) throws java.io.IOException
java.io.IOException
Method Detail |
---|
@Deprecated public java.io.InputStream getInputStream()
public java.lang.String getScriptText()
public java.lang.String getName()
public java.io.File getFile()
public void setCachable(boolean b)
public boolean isCachable()
|
Copyright © 2003-2012 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |