`
文章列表

DOM解析xml

    博客分类:
  • xml
import java.io.File; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class OneZoreFi ...
CreateChartService.java 完成报表的生成,项目只要柱状图和折线图,所以只生成了2中图形, 类中还有JFreeChart 数据的转换方法,JFreeChart相关的配置方法 Java代码  import java.awt.Color;  import java.awt.Font;  import java.io.File;  import java.io.FileOutputStream;  import java.io.IOException;  import java.util.ArrayList;  import java.util.HashMap;  ...
import java.awt.Color; import java.awt.RenderingHints; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpSession; import org.apache.struts2.ServletActionContext; import ...

POICreate

    博客分类:
  • POI
import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.poi.hssf.usermodel.HSSFHeader; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apa ...

SummaryHSSF

    博客分类:
  • POI
public class SummaryHSSF {     public static void main(String[] args) throws IOException {         //创建Workbook对象(这一个对象代表着对应的一个Excel文件)                      //HSSFWorkbook表示以xls为后缀名的文件         Workbook wb = new HSSFWorkbook();         //获得CreationHelper对象,这个应该是一个帮助类         CreationHelper ...
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Collection; import java.util.Iterator; import java.util.Properties; import java.util.Set; import java.util.Map.Entry; public class ReadProperties { public stati ...

Properties

import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.InvalidPropertiesFormatException; import java.util.Properties; public class Property { public static void main(String[] args) { ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class SysManagerAction { /** * java调用批处理,批处理的功能是:调用一些的操作将java源文件进行编译并执行。 * @param args */ public static void main(String[] args) { try { Process process = ...
import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.Map.Entry; import org.apache.poi.hssf.usermodel.HSSFFont; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermo ...

ReadXSSF

    博客分类:
  • POI
import java.io.IOException; import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; public class ReadXSSF {     public static void main(String[] args) { //构造XS ...

ReadExcel

    博客分类:
  • POI
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.ss.usermodel.Cell; import org.apache. ...

MergedRegionValue

    博客分类:
  • POI
import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.util.CellRangeAddress; public class MergedRegionValue { /** * 获取合并单元格的值 * * @param sheet * @param row * @param column * @return */ pub ...

ExcelUtils

    博客分类:
  • POI
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServle ...
Global site tag (gtag.js) - Google Analytics