IFileIo.java 723 Bytes
Newer Older
苗卫卫 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
package com.boco.nbd.wios.downloadfile.fileio;

/**
 * @author haica
 */
public interface IFileIo {

	/**
	 * save
	 * @param entity
	 */
	void save(FileIoEntity entity);

	/**
	 * saveBak
	 * @param entity
	 */
	void saveBak(FileIoEntity entity);

	/**
	 * updateContent
	 * @param id
	 * @param content
	 */
	void updateContent(String id, final byte[] content);

	/**
	 * remove
	 * @param entity
	 * @return
	 */
	boolean remove(FileIoEntity entity);

	/**
	 * get
	 * @param id
	 * @return
	 */
	byte[] get(String id);

	/**
	 * execute
	 * @param fileIoEntity
	 * @param fileInputStreamImpl
	 * @throws Exception
	 */
	void execute(FileIoEntity fileIoEntity, IFileInputStream fileInputStreamImpl) throws Exception;

}