1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.tracecompass
.ctf
.core
.trace
;
14 import java
.io
.IOException
;
15 import java
.nio
.ByteBuffer
;
16 import java
.nio
.channels
.FileChannel
;
19 * CTF trace packet writer.
21 * @author Bernd Hufmann
24 public class CTFStreamPacketOutputWriter
{
27 * Writes a stream packet to the output file channel based on the packet
28 * descriptor information.
31 * a byte buffer with packet to write
35 * if a reading or writing error occurs
37 public void writePacket(ByteBuffer byteBuffer
, FileChannel fc
) throws IOException
{