frameworkplugins/com.nokia.s60tools.util/src/com/nokia/s60tools/util/cmdline/DefaultLineReader.java
author dpodwall
Tue, 12 Jan 2010 13:17:53 -0600
changeset 0 61163b28edca
permissions -rw-r--r--
initial EPL conversion
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     1
/*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     3
* All rights reserved.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     4
* This component and the accompanying materials are made available
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     6
* which accompanies this distribution, and is available
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     8
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     9
* Initial Contributors:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    11
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    12
* Contributors:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    13
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    14
* Description:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    15
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    16
*/
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    17
 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    18
 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    19
package com.nokia.s60tools.util.cmdline;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    20
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    21
import java.io.BufferedReader;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    22
import java.io.IOException;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    23
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    24
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    25
/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    26
 * An example instance of ICustomLineReader interface.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    27
 * This is used by default if no user-defined custom
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    28
 * parser has not been passed for command executor
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    29
 * instance.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    30
 *
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    31
 *@see com.nokia.s60tools.util.cmdline.ICustomLineReader
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    32
 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    33
public class DefaultLineReader implements ICustomLineReader {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    34
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    35
	/* (non-Javadoc)
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    36
	 * @see com.nokia.s60tools.util.cmdline.ICustomLineReader#readLine(java.io.BufferedReader, com.nokia.s60tools.util.cmdline.ICmdLineCommandExecutorObserver)
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    37
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    38
	public String readLine(BufferedReader br, 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    39
						   ICmdLineCommandExecutorObserver observer) throws IOException {		
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    40
		return br.readLine();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    41
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    42
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    43
}