Commit | Line | Data |
---|---|---|
4c5b8099 FC |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 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 | * Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.eventlog; | |
14 | ||
15 | import java.io.FileNotFoundException; | |
16 | import java.io.IOException; | |
17 | ||
18 | /** | |
19 | * <b><u>TmfEventStreamStub</u></b> | |
20 | * <p> | |
21 | * TODO: Implement me. Please. | |
22 | */ | |
23 | public class TmfEventStreamStub extends TmfEventStream { | |
24 | ||
25 | // ======================================================================== | |
26 | // Attributes | |
27 | // ======================================================================== | |
28 | ||
29 | // ======================================================================== | |
30 | // Constructors | |
31 | // ======================================================================== | |
32 | ||
33 | /** | |
34 | * @param filename | |
35 | * @throws FileNotFoundException | |
36 | */ | |
37 | public TmfEventStreamStub(String filename, ITmfEventParser parser) throws FileNotFoundException { | |
38 | super(filename, parser); | |
39 | } | |
40 | ||
41 | /** | |
42 | * @param filename | |
43 | * @throws FileNotFoundException | |
44 | */ | |
45 | public TmfEventStreamStub(String filename, ITmfEventParser parser, int cacheSize) throws FileNotFoundException { | |
46 | super(filename, parser, cacheSize); | |
47 | } | |
48 | ||
49 | // ======================================================================== | |
50 | // Accessors | |
51 | // ======================================================================== | |
52 | ||
53 | // ======================================================================== | |
54 | // Operators | |
55 | // ======================================================================== | |
56 | ||
57 | public void seekLocation(Object location) throws IOException { | |
58 | seek((Long) location); | |
59 | } | |
60 | ||
61 | public Object getCurrentLocation() { | |
62 | try { | |
63 | return new Long(getFilePointer()); | |
64 | } catch (IOException e) { | |
65 | // TODO Auto-generated catch block | |
66 | e.printStackTrace(); | |
67 | } | |
68 | return null; | |
69 | } | |
70 | ||
71 | // ======================================================================== | |
72 | // Helper functions | |
73 | // ======================================================================== | |
74 | ||
75 | } |