|
|||||||||
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(File infile)
|
|
GroovyCodeSource(File infile,
String encoding)
|
|
GroovyCodeSource(InputStream inputStream,
String name,
String codeBase)
Deprecated. Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. |
|
GroovyCodeSource(Reader reader,
String name,
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. |
|
GroovyCodeSource(String script,
String name,
String codeBase)
|
|
GroovyCodeSource(URL url)
|
Method Summary | |
---|---|
File |
getFile()
|
InputStream |
getInputStream()
Deprecated. Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. |
String |
getName()
|
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(String script, String name, String codeBase)
public GroovyCodeSource(Reader reader, String name, String codeBase)
@Deprecated public GroovyCodeSource(InputStream inputStream, String name, String codeBase)
public GroovyCodeSource(File infile, String encoding) throws IOException
IOException
public GroovyCodeSource(File infile) throws IOException
infile
- the file to create a GroovyCodeSource for.
IOException
- if an issue arises opening and reading the file.public GroovyCodeSource(URL url) throws IOException
IOException
Method Detail |
---|
@Deprecated public InputStream getInputStream()
public String getScriptText()
public String getName()
public File getFile()
public void setCachable(boolean b)
public boolean isCachable()
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |