private void appendT(Event event) throws IOException
	{
		event.trim(this.eventEntry.getTypeLength(), this.eventEntry
				.getCommentLength());

		byte[] type = event.getType().getBytes();
		if (type.length < this.typeLength)
		{
			byte[] temp = new byte[typeLength];
			System.arraycopy(type, 0, temp, 0, type.length);
			for (int i = type.length; i < temp.length; i++)
				temp[i] = 0;
			type = temp;
		}
		else
		{
			if (type.length > this.typeLength)
			{
				byte[] temp = new byte[typeLength];
				System.arraycopy(type, 0, temp, 0, type.length);
				type = temp;
			}
		}

		byte[] comment = event.getComment().getBytes();
		if (comment.length < commentLength)
		{
			byte[] temp = new byte[commentLength];
			System.arraycopy(comment, 0, temp, 0, comment.length);
			for (int i = comment.length; i < temp.length; i++)
				temp[i] = 0;
			comment = temp;
		}
		else
		{
			if (comment.length > commentLength)
			{
				byte[] temp = new byte[commentLength];
				System.arraycopy(comment, 0, temp, 0, commentLength);
				comment = temp;
			}
		}
		long value = event.getSampleStamp();
		this.file.write64(value);
		this.file.writeBytes(type);
		this.file.writeBytes(comment);
		return;
	}