package com.njcn.pojo.file;

import com.njcn.pojo.abstractClass.AbstractFile;
import net.sf.json.JSONObject;

import java.io.IOException;

/**
 * @Author: Sunwei 【sunW2016@163.com】
 * @Description:
 * @Date: Create in 20:07 2018/3/5
 * @Modified By:
 */
public class JsonFile extends AbstractFile<JSONObject> {
	public JsonFile(FileProperty fileProperty) throws IOException {
		super.setFileProperty(fileProperty);
	}

	/**
	 * @param strBuffer
	 *            文件读取的字符串流
	 * @return
	 */
	@Override
	public JSONObject string2T(String strBuffer) {
		return JSONObject.fromObject(strBuffer);
	}
}
