public static void main(String[] args) throws IOException {
		
		OutputStream out = new FileOutputStream("/tmp/filter.data");
		BufferedOutputStream bos = new BufferedOutputStream(out);
//		ZipOutputStream zip = new ZipOutputStream(bos);
		DataOutputStream dos = new DataOutputStream(out);
		
		dos.writeInt(10);
		dos.writeShort(12);
		dos.writeUTF("string val");
		
		dos.close();
		
		InputStream is = new FileInputStream("/tmp/filter.data");
//		ZipInputStream zis = new ZipInputStream(is);
		DataInputStream dis = new DataInputStream(is);
		
		System.out.println(dis.readInt());
		System.out.println(dis.readShort());
		System.out.println(dis.readUTF());
	}