Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class NUtil

java.lang.Object
  extended by oracle.ldap.util.NUtil


public class NUtil
extends java.lang.Object

A Utility class providing some of the commonly required APIs which, depend upon the native platform.

Since:
9.4 and iAS 9.0.4

Constructor Summary
NUtil()
           

 

Method Summary
static void main(java.lang.String[] args)
          Test Driver
static java.lang.String readLine()
          Reads a line of text.
static java.lang.String readLine(java.lang.String prompt)
          Reads a line of text after displaying the given prompt message.
static java.lang.String readLine(java.lang.String prompt, boolean trim)
          Reads a line of text after displaying the given prompt message.
static java.lang.String readLineNoEcho()
          Reads a line of text without echoing on terminal.
static java.lang.String readLineNoEcho(java.lang.String prompt)
          Reads a line of text without echoing on terminal, after displaying the given prompt message.
static java.lang.String readLineNoEcho(java.lang.String prompt, boolean trim)
          Reads a line of text without echoing on terminal, after displaying the given prompt message.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

NUtil

public NUtil()

Method Detail

readLineNoEcho

public static java.lang.String readLineNoEcho()
                                       throws java.io.IOException
Reads a line of text without echoing on terminal.
Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached.
Throws:
java.io.IOException - If an I/O error occurs.

readLineNoEcho

public static java.lang.String readLineNoEcho(java.lang.String prompt)
                                       throws java.io.IOException
Reads a line of text without echoing on terminal, after displaying the given prompt message.
Parameters:
prompt - the message to be printed on the termial.
Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached
Throws:
java.io.IOException - If an I/O error occurs.

readLineNoEcho

public static java.lang.String readLineNoEcho(java.lang.String prompt,
                                              boolean trim)
                                       throws java.io.IOException
Reads a line of text without echoing on terminal, after displaying the given prompt message.
Parameters:
prompt - the message to be printed on the termial.
trim - if true whitespaces on either side will be trimmed.
Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached
Throws:
java.io.IOException - If an I/O error occurs.

readLine

public static java.lang.String readLine()
                                 throws java.io.IOException
Reads a line of text.
Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached.
Throws:
java.io.IOException - If an I/O error occurs.

readLine

public static java.lang.String readLine(java.lang.String prompt)
                                 throws java.io.IOException
Reads a line of text after displaying the given prompt message.
Parameters:
prompt - the message to be printed on the termial.
Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached
Throws:
java.io.IOException - If an I/O error occurs.

readLine

public static java.lang.String readLine(java.lang.String prompt,
                                        boolean trim)
                                 throws java.io.IOException
Reads a line of text after displaying the given prompt message.
Parameters:
prompt - the message to be printed on the termial.
trim - if true whitespaces on either side will be trimmed.
Returns:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached
Throws:
java.io.IOException - If an I/O error occurs.

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Test Driver
Throws:
java.io.IOException

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.