private void createData() {
		try {

			outStream = new ByteArrayOutputStream();
			DataOutputStream writer = new DataOutputStream(outStream);
			for (int i = 0; i < 10; i++) {
				Trade lastTrade = new Trade(i);
				writer.writeInt(lastTrade.scripCode);
				writer.write(lastTrade.time);
				writer.writeDouble(lastTrade.bid);
				writer.writeDouble(lastTrade.offer);
				writer.writeDouble(lastTrade.high);
				writer.writeDouble(lastTrade.low);
				writer.writeDouble(lastTrade.quantity);
			}
		} catch (Exception e) {
			System.out.println("Error while writing data to buffer");
		}
	}