Code example for ObjectOutputStream

Methods: close

0
	 
	@Override 
	public void resetStream() { 
		try { 
			if (outputStream != null) { 
				outputStream.close(); 
			} 
			outputStream = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(filename), BUFFERSIZE)); 
		} catch (IOException e) { 
			throw new MetafactureException(e); 
		}  
	} 
	 
	@Override 
	public void closeStream() { 
		try { 
			if (outputStream != null) { 
				outputStream.close(); 
			} 
		} catch (IOException e) {