Code example for ByteArrayOutputStream

Methods: size, write

	public int createString(String str) {
		Integer offset = strings.get(str);
		if (offset != null)
			return offset;
		int off = buffer.size();
		try { 
		} catch (IOException e) {
			// Can't convert, return empty string instead. 
			off = 0;
		strings.put(str, off);
		return off;
	 * The meaning of number of items for this section is the largest string 
	 * offset possible.  We are taking the total size of the string section