shtmlfactory.java

来自「新闻发布系统」· Java 代码 · 共 39 行

JAVA
39
字号
/*
 * ShtmlFactory.java
 *
 * Created on 2007年3月27日, 上午8:43
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package News.ProcessData;
import java.util.*;
import java.io.*;
import javax.servlet.http.HttpServletRequest;
/**
 *
 * @author Owner
 */
public class ShtmlFactory {
    FileInputStream in=null;
    FileOutputStream out=null;
    /** Creates a new instance of ShtmlFactory */
    public ShtmlFactory() {
       
    }
    
    public boolean shtml(HttpServletRequest request)
    {
        String filename=request.getRealPath("")+"template.html";
        try{
        in=new FileInputStream(filename);
        int len=in.available();
        byte[] content=new byte[len];
        
        }catch(IOException e){return false;}
        return true;
    }   
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?