trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/utils/ConsoleBase.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * Base class for message console |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.utils; |
|
20 |
|
21 import java.io.OutputStream; |
|
22 |
|
23 /** |
|
24 * Base class for message console |
|
25 * |
|
26 */ |
|
27 public abstract class ConsoleBase { |
|
28 |
|
29 /** |
|
30 * Console title |
|
31 */ |
|
32 private String title; |
|
33 |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 protected ConsoleBase() { |
|
38 } |
|
39 |
|
40 /** |
|
41 * Creates a stream that writes to the console |
|
42 * |
|
43 * @return the stream |
|
44 */ |
|
45 protected abstract OutputStream createStream(); |
|
46 |
|
47 /** |
|
48 * Gets the console title |
|
49 * |
|
50 * @return the title |
|
51 */ |
|
52 public String getTitle() { |
|
53 return title; |
|
54 } |
|
55 |
|
56 /** |
|
57 * Sets the console title |
|
58 * |
|
59 * @param title |
|
60 * the title to set |
|
61 */ |
|
62 void setTitle(String title) { |
|
63 this.title = title; |
|
64 } |
|
65 |
|
66 } |