private void readData() {
		byte[] timeBuffer = new byte[8];
		StringBuilder sb = new StringBuilder();
		Formatter formatter = new Formatter(sb, Locale.US);
		ByteArrayInputStream inStream = new ByteArrayInputStream(
				outStream.toByteArray());
		DataInputStream reader = new DataInputStream(inStream);
		try {
			for (int i = 0; i < 10; i++) {
				int scripCode = reader.readInt();
				reader.read(timeBuffer);
				String time = new String(timeBuffer);
				double bid = reader.readDouble();
				double offer = reader.readDouble();
				double high = reader.readDouble();
				double low = reader.readDouble();
				long volume = reader.readLong();

				formatter.format("ScripCode: %2d" + "\tTime: %s "
						+ "\tBid:$  %05.2f" + "\tOffer:$  %05.2f"
						+ "\tHigh:$  %05.2f" + "\tLow:$  %05.2f"
						+ "\tVolume: %d ", scripCode, time, bid, offer, high,
						low, volume);
				System.out.println(sb);
				sb.delete(0, sb.length());

			}
		} catch (Exception e) {
			System.out.println("Error while reading data");
		}
	}