📄 domdatasource.java
字号:
package com.jeffhanson.atompub;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.activation.DataSource;
import org.w3c.dom.Node;
public class DOMDataSource
implements DataSource
{
private String name = "";
private Node node = null;
private String contentType = "";
public DOMDataSource(String name, org.w3c.dom.Node node, String contentType)
{
this.name = name;
this.node = node;
this.contentType = contentType;
}
public Node getNode()
{
return node;
}
public String getContentType()
{
return contentType;
}
public String getName()
{
return name;
}
public InputStream getInputStream()
throws IOException
{
return null;
}
public OutputStream getOutputStream()
throws IOException
{
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -