Code example for ObjectInputStream

Methods: close, readLong

0
	private void readTempFile() { 
		FileInputStream in = null;
		ObjectInputStream objIn = null;
		try { 
			in = new FileInputStream(this.tmpPath);
			objIn = new ObjectInputStream(in);
			fetch.setFileStart(objIn.readLong());
			fetch.setFileEnd(objIn.readLong());
		} catch (Exception e) {
			e.printStackTrace();
		} finally { 
			try { 
				in.close();
			} catch (Exception e) {
			} 
			try { 
				objIn.close();
			} catch (Exception e) {
			} 
		} 
	} 
	public static HttpEntity getHttpEntity(String netAddress, boolean isZip)