Code example for ByteArrayOutputStream

Methods: sizewritewrite

	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 
Stop searching for code, let great code find you!  Add Codota to your java IDE