⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcudatawindows.java

📁 为公司做的质量考核接口源码,用spring,hibernate,XML实现,对XML接口编程很有帮助
💻 JAVA
字号:
/**
 * 
 */
package com.jr81.source.dataset;


import java.io.InputStream;

import com.jr81.source.stream.TcuBaseClassSTR;
import com.jr81.source.stream.TcuListClassSTR;


/**
 * @author Administrator
 *
 */
public class TcuDataWindows extends TcuListClassSTR {
	public TcuDataWindows() {
		super("DataWindows");
		// TODO Auto-generated constructor stub
	}
	
	public TcuBaseClassSTR ItemFromStream(InputStream value) throws Exception{
		TcuDataWindow Item=new TcuDataWindow();
		//Item.getStrItems().fromStream(value);
		//Item.ParseStrItems();
		Item.LoadFromStream(value);
		return Item;	
	}
	
	public TcuDataWindow GetDataWindow(String name) {
		TcuDataWindow ResultDataWindow = null;
		for (int i = 0; i < GetCount(); i++) {
			if (((TcuDataWindow)GetItem(i)).getName().equals(name)) {
				ResultDataWindow = (TcuDataWindow)GetItem(i);
				break;
			}
		}
		return ResultDataWindow;
	}
/*
	private TcuLists Lists = new TcuLists(0);
	
	public TcuDataWindows() {
		
	}
	
	public void Clear() {
		Lists.Clear();
	}
	
	public int GetCount() {
		return Lists.GetCount();
	}
	
	public void AddList(TcuDataWindow value) throws Exception {
		Lists.AddList(String.valueOf(Lists.GetCount()).getBytes(), value.SaveToByteArray(), 3);
	}
	
	public TcuDataWindow GetList(int index) throws Exception {
		TcuDataWindow DataWindow = new TcuDataWindow();
		DataWindow.LoadFromByteArray(Lists.GetList(index).getBase64Value());
		return DataWindow;
	}
	
	public void DeleteList(int index) {
		Lists.DeleteList(index);
	}
	
	
	public void Assign(TcuDataWindows value) throws Exception {
		Clear();
		for (int i = 0; i < value.GetCount(); i++) {
			AddList(value.GetList(i));
		}
	}
	
	public boolean FromByteXml(byte[] value) {
		return Lists.FromByteXml(value);
	}
	
	public byte[] ToByteXml() throws IOException {
		return Lists.ToByteXml();	
	}
	*/
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		TcuDataWindows dw=new TcuDataWindows();
		dw.LoadFromFile("c:\\test\\datawindows.txt");		
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -