⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 domdatasource.java

📁 编写rest实例 rest分布式框架在app中的应用
💻 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 + -