Archive

Category Archives for "Java Zip"

Xử lý UnZip file trong Java

1. Xử lý UnZip file cơ bảnNôi dung sampleZipFile.zip line content 1 line content 2 line content 3 line content 4 line content 5 line content 6 Tạo class SampleUnzipFile.java package com.loop.zip;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.util.zip.ZipEntry;import java.util.zip.ZipInputStream;public class SampleUnzipFile {  /**  * Create by Cuder  */  public static void main(String[] args) {    ZipInputStream zipInputStream = null;    FileInputStream fileInputStream = null;    FileOutputStream […]

Xem chi tiết

Xử lý Zip file trong Java

1. Xử lý Zip file cơ bảnNôi dung sampleZipFile.txt line content 1 line content 2 line content 3 line content 4 line content 5 line content 6 Tạo class SampleZipFile.java package com.loop.zip;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.util.zip.ZipEntry;import java.util.zip.ZipOutputStream;public class SampleZipFile {  /**  * Create by Cuder  */  public static void main(String[] args) {  ZipOutputStream zipOutputStream = null;  FileInputStream fileInputStream = null;  try […]

Xem chi tiết