*** empty log message ***

This commit is contained in:
hns 2001-07-31 22:34:28 +00:00
parent 2b97e4dec2
commit a283adba4a

View file

@ -1,46 +0,0 @@
// NodeDataSource.java
// Copyright (c) Hannes Wallnöfer 1999-2000
package helma.objectmodel;
import javax.activation.*;
import java.io.*;
/**
* Makes Nodes usable as Datasources in the Java Activation Framework (JAF)
*/
public class NodeDataSource implements DataSource {
private INode node;
private String name;
public NodeDataSource (INode node) {
this.node = node;
this.name = node.getName ();
}
public NodeDataSource (INode node, String name) {
this.node = node;
this.name = name;
}
public InputStream getInputStream() throws IOException {
return new ByteArrayInputStream(node.getContent ());
}
public OutputStream getOutputStream () throws IOException {
throw new IOException ("Can't write to Node object.");
}
public String getContentType() {
return node.getContentType ();
}
public String getName()
{
return name;
}
}