Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / parsers / custom / CustomTxtTraceContext.java
1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made 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
8 *
9 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.parsers.custom;
14
15 import java.io.IOException;
16 import java.util.regex.Matcher;
17
18 import org.eclipse.linuxtools.tmf.core.io.BufferedRandomAccessFile;
19 import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
20 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
21 import org.eclipse.linuxtools.tmf.ui.parsers.custom.CustomTxtTraceDefinition.InputLine;
22
23 public class CustomTxtTraceContext extends TmfContext {
24 public BufferedRandomAccessFile raFile;
25 public Matcher firstLineMatcher;
26 public String firstLine;
27 public long nextLineLocation;
28 public InputLine inputLine;
29
30 public CustomTxtTraceContext(ITmfLocation<?> location, long rank) {
31 super(location, rank);
32 }
33
34 @Override
35 public void dispose() {
36 if (raFile != null) {
37 try {
38 raFile.close();
39 } catch (IOException e) {
40 }
41 }
42 super.dispose();
43 }
44
45 }
This page took 0.034025 seconds and 6 git commands to generate.