Methods Summary |
---|
public java.lang.String[] | mapFileName(java.lang.String sourceFileName)Return the result of the filters on the sourcefilename.
try {
Reader stringReader = new StringReader(sourceFileName);
ChainReaderHelper helper = new ChainReaderHelper();
helper.setBufferSize(8192);
helper.setPrimaryReader(stringReader);
helper.setProject(getProject());
Vector filterChains = new Vector();
filterChains.add(this);
helper.setFilterChains(filterChains);
String result = FileUtils.readFully(helper.getAssembledReader());
if (result.length() == 0) {
return null;
} else {
return new String[] {result};
}
} catch (BuildException ex) {
throw ex;
} catch (Exception ex) {
throw new BuildException(ex);
}
|
public void | setFrom(java.lang.String from)From attribute not supported.
throw new UnsupportedAttributeException(
"filtermapper doesn't support the \"from\" attribute.", "from");
|
public void | setTo(java.lang.String to)From attribute not supported.
throw new UnsupportedAttributeException(
"filtermapper doesn't support the \"to\" attribute.", "to");
|