WhatsApp怎么取消信息已读
WhatsApp Android用户在下载完成后,找到下载的apk文件,点击安装即可。由于安装的是非应用商店的软件,手机可能会弹出安全提示,选择“允许”即可。iOS用户在App Store下载完成后,就会自动安装,无需额外操作。
以下是使用Apache POI读取WPS文件的示例代码:```java
import java.io.File;
import java.io.IOException;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFTextTable;
import org.apache.poi.xwpf.usermodel.XWPFTable;
public class WPSReader {
public static void main(String[] args) throws IOException {
// 读取文件
File file = new File("example.wps");
XWPFDocument document = new XWPFDocument(file);
//遍历页面内容
for (XWPFParagraph paragraph : document.getParagraphs()) {
System.out.println(paragraph.getText());
}
//遍历表格内容
for (XWPFTextTable table : dowhatapp网页版怎样群发cument.getTextTables()) {
System.out.println(table.getText());
}
}
}
```
以上代码通过Apache POI库来读取WPS文件,并输出了文档中的文字和表格内容。在此之前需要先导入Apache POI库的jar文件,并且成功地创建了一个XWPFDocument对象。在这个例子中只是简单地遍历了文档中的内容,实whatapp网页版群发软件际应用中需要根据具体需求进行更加复杂的处理。 可以的,用微软的Office也可以打开的,呵呵,这个whatsapp用户数据一般装windows的机子好像都装了吧再不你可以保存的时候,保存个PDF格式的在别的电脑上只要有PDF的阅读器也可以打开的import java.io.IOException;
import java.io.OutputStream;
import java.math.BigDecimal;
import javax.servlet.http.HttpServletResponse;
import whatapp网页版在线登录org.apache.poi.hssf.usermwhatsapp下载软件odel.HSSFCell;
import org.apache.poiwhatapp网页版共享好友链接.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public class Test {
public static void createDtcxEXCEL(HttpServletResponse response,
java.util.List queryList, int flag, String[] ywName, String fileName)
throws IOException {
response.setContentType("appliwhatsapp bussiness 苹果下载cation/vnd.ms-excel;charset=GBK");
response.addHeader("Content-Disposition", "attachment;filename="
+ new String(fileName.getBytes("GBK"), "ISO8859_1"));
OutputStream output = response.getOutputStream();
// 创建新Excel 工作簿
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet;
HSSFRow row;
HSSFCell cell;
sheet = workbook.createSheet();
String strReportName = "查询结列表";
workbook.setSheetName(0, strReportName); // 新建名strReportName工作表
// 创建表
// 索引0位置创建行(顶端行)
row = sheet.createRow((short) 0);
for (int kk = 0; kk < ywName.length; kk++) {
// 索引0位置创建单元格(左端)
cell = row.createCell( kk);
// cell.setCellStyle(HSSFCellStyle.ALIGN_CENTER);
// 定义单元格字符串类型
cell.setCellType(HSSFCell.CELL_TYPE_STRING);
// 设置字符显示格式unicode格式显示
//cell.setEncoding(HSSFCell.ENCODING_UTF_16);
// 单元格输入些内容
cell.setCellValue(ywName[kk]);
}
int line = 1;
int cellWidth = ywName.length;
for (int i = 0; i < queryList.size(); i++) {
// HashMap personInfo = (HashMap) queryList.get(i);
Object[] personInfo = (Object[]) queryList.get(i);
row = sheet.createRow((short) line);
for (int j = 0; j < cellWidth; j++) {
cell = row.createCell(j);
//cell.setEncoding(HSSFCell.ENCODING_UTF_16);
cell.setCellType(HSSFCell.CELL_TYPE_STRING);
if (personInfo[j + flag] instanceof Integer) {
if (personInfo[j + flag] != null)
cell.setCellValue((Integer) personInfo[j + flag]);
ewhatapp网页版手机版软件lse
cell.setCellValue("");
} else if (personInfo[j + flag] instanceof BigDecimal) {
if (personInfo[j + flag] != null)
cell.setCellValue(new Double(personInfo[j + flag]
.toString()));
else
cell.setCellValue("");
} else if (personInfo[j + flag] instanceof Double) {
if (personInfo[j + flag] != null)
cellwhatapp网页版登录验证.setCellValue((Double) personInfo[j + flag]);
else
cell.setCellValue("");
} else {
if (personInfo[j + flag] != null)
cell.setCellValue(personInfo[j + flag].toString());
else
cell.setCellValue("");
}
}
line++;
}
workbook.write(output);
output.flush();
output.close();
}
}
,可以通过流的方式加载.wps文档,下面以读取文档中的文字保存到本地为例,你参考看看如何读取的。
import com.spire.doc.*;import java.io.File;import java.io.FileInputStream;import java.io.FileWriter;import java.io.IOException;public class ReadTextFromWPS {public static void main(String[] args) throws IOException{//通过流加载WPS文字文档FileInputStream inputStream = new FileInputStream(new File("test.wps"));Document doc = new Document();doc.loadFromStream(inputStream, FileFormat.Doc);//获取文本保存为StringString text = doc.getText();//将String写入TxtwriteStringToTxt(text,"读取WPS文本.txt");}public static void writeStringToPC端whatapp网页版Txt(String content, String txtFileName) throws IOException {FileWriter fWriter= new FileWriter(txtFileName,true);try {fWriter.write(content);}catch(IOException ex){ex.printStackTrace();}finally{try{fWriter.flush();fWriter.close();} catch (IOException ex) {ex.printStackTrace();}}}}
读取结果:
注意在程序中导入spire.doc.jar。
WhatsApp中文网页版 - WhatsApp官网请注明:WhatsApp中文网页版 - WhatsApp官网 » whatsapp怎么取消信息已读 whatapp网页版 协议分析 登录 Java读取.wps后缀名文档的代码?