// Path: src/main/java/org/rr/mobi4java/ByteUtils.java
// public static void write(byte[] data, OutputStream out) throws IOException {
// 	write(data, data.length, out);
// }


import static org.rr.mobi4java.ByteUtils.write;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.commons.lang3.builder.ToStringBuilder;
package org.rr.mobi4java;




public class MobiContent {
	
	public enum CONTENT_TYPE {
		HEADER, CONTENT, INDEX, TAGX, TAG, IDXT, FLIS, FCIS, FDST, DATP, SRCS, CMET, AUDI, VIDE, END_OF_TEXT, 
		COVER, THUMBNAIL, IMAGE, UNKNOWN
	};
	
	protected byte[] content;
	
	private CONTENT_TYPE type;
	
	MobiContent(byte[] content, CONTENT_TYPE type) {
		this.content = content;
		this.type = type;
	}
	
	byte[] writeContent(OutputStream out) throws IOException {
// Path: src/main/java/org/rr/mobi4java/ByteUtils.java
// public static void write(byte[] data, OutputStream out) throws IOException {
// 	write(data, data.length, out);
// }


// Path: src/main/java/org/rr/mobi4java/MobiContent.java
import static org.rr.mobi4java.ByteUtils.write;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.commons.lang3.builder.ToStringBuilder;

package org.rr.mobi4java;




public class MobiContent {
	
	public enum CONTENT_TYPE {
		HEADER, CONTENT, INDEX, TAGX, TAG, IDXT, FLIS, FCIS, FDST, DATP, SRCS, CMET, AUDI, VIDE, END_OF_TEXT, 
		COVER, THUMBNAIL, IMAGE, UNKNOWN
	};
	
	protected byte[] content;
	
	private CONTENT_TYPE type;
	
	MobiContent(byte[] content, CONTENT_TYPE type) {
		this.content = content;
		this.type = type;
	}
	
	byte[] writeContent(OutputStream out) throws IOException {
		write(content, out);