@Override
public Adapter createGenClassAdapter() {
return new GenClassGeneratorAdapter(this) {
@Override
protected OutputStream createOutputStream(URI workspacePath) throws Exception {
return new LineFilterOutputStream(getURIConverter().createOutputStream(workspacePath),
" * $Id" + "$");
}
@Override
protected URI toURI(String pathName) {
return URI.createFileURI(uri);
}
};
}
@Override
public Adapter createGenPackageAdapter() {
return new GenPackageGeneratorAdapter(this) {
@Override
protected URI toURI(String pathName) {
return URI.createFileURI(uri);
}
@Override
protected OutputStream createOutputStream(URI workspacePath) throws Exception {
return new LineFilterOutputStream(getURIConverter().createOutputStream(workspacePath),
" * $Id" + "$");
}
};
}