Commit | Line | Data |
---|---|---|
c3c5c786 FC |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2010 Ericsson\r | |
3 | * \r | |
4 | * All rights reserved. This program and the accompanying materials are\r | |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
8 | * \r | |
9 | * Contributors:\r | |
10 | * Patrick Tasse - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.parsers.custom;\r | |
14 | \r | |
948b0607 FC |
15 | import java.io.IOException;\r |
16 | \r | |
6c13869b FC |
17 | import org.eclipse.linuxtools.tmf.core.io.BufferedRandomAccessFile;\r |
18 | import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;\r | |
19 | import org.eclipse.linuxtools.tmf.core.trace.TmfContext;\r | |
c3c5c786 FC |
20 | \r |
21 | public class CustomXmlTraceContext extends TmfContext {\r | |
d7fcacc9 | 22 | public BufferedRandomAccessFile raFile;\r |
c3c5c786 FC |
23 | \r |
24 | public CustomXmlTraceContext(ITmfLocation<?> location, long rank) {\r | |
25 | super(location, rank);\r | |
26 | }\r | |
948b0607 FC |
27 | \r |
28 | @Override\r | |
29 | public void dispose() {\r | |
30 | if (raFile != null) {\r | |
31 | try {\r | |
32 | raFile.close();\r | |
33 | } catch (IOException e) {\r | |
34 | }\r | |
35 | }\r | |
36 | super.dispose();\r | |
37 | }\r | |
38 | \r | |
c3c5c786 | 39 | } |