From a283adba4a31b5b26a94e6535fc6c4f63ee1cae0 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 31 Jul 2001 22:34:28 +0000 Subject: [PATCH] *** empty log message *** --- src/helma/objectmodel/NodeDataSource.java | 46 ----------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/helma/objectmodel/NodeDataSource.java diff --git a/src/helma/objectmodel/NodeDataSource.java b/src/helma/objectmodel/NodeDataSource.java deleted file mode 100644 index 47aca47e..00000000 --- a/src/helma/objectmodel/NodeDataSource.java +++ /dev/null @@ -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; - } - -}