| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final Formatter | |
| private final Charset | |
| private static final LazyConstant | |
| private final PrintWriter | |
| private char[] | |
| private final Reader | |
| private final Object | |
| private boolean | |
| private final Object | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Charset | |
| private static native boolean | |
| public void | |
| public JdkConsole | |
| private char[] | |
| private void | |
| public static Optional | |
| public JdkConsole | |
| public JdkConsole | |
| public Reader | |
| public String | readLine(Locale locale, String format, Object... args)
Implements jdk.
|
| public String | |
| private char[] | |
| public char[] | readPassword(Locale locale, String format, Object... args)
Implements jdk.
|
| public char[] | |
| private char[] | |
| public char[] | |
| public PrintWriter |
| formatter | back to summary |
|---|---|
| private final Formatter formatter | |
| outCharset | back to summary |
|---|---|
| private final Charset outCharset | |
| PASSWORD_CONSOLE | back to summary |
|---|---|
| private static final LazyConstant<Optional<JdkConsoleImpl>> PASSWORD_CONSOLE | |
| pw | back to summary |
|---|---|
| private final PrintWriter pw | |
| rcb | back to summary |
|---|---|
| private char[] rcb | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| readLock | back to summary |
|---|---|
| private final Object readLock | |
| restoreEcho | back to summary |
|---|---|
| private boolean restoreEcho | |
| restoreEchoLock | back to summary |
|---|---|
| private final Object restoreEchoLock | |
| shutdownHookInstalled | back to summary |
|---|---|
| private boolean shutdownHookInstalled | |
| JdkConsoleImpl | back to summary |
|---|---|
| public JdkConsoleImpl(Charset inCharset, Charset outCharset) | |
| charset | back to summary |
|---|---|
| public Charset charset() Implements jdk.
| |
| echo | back to summary |
|---|---|
| private static native boolean echo(boolean on) throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() Implements jdk.
| |
| format | back to summary |
|---|---|
| public JdkConsole format(Locale locale, String format, Object... args) Implements jdk.
| |
| grow | back to summary |
|---|---|
| private char[] grow() | |
| installShutdownHook | back to summary |
|---|---|
| private void installShutdownHook() | |
| passwordConsole | back to summary |
|---|---|
| public static Optional | |
| back to summary | |
|---|---|
| public JdkConsole print(Object obj) Implements jdk.
| |
| println | back to summary |
|---|---|
| public JdkConsole println(Object obj) Implements jdk.
| |
| reader | back to summary |
|---|---|
| public Reader reader() Implements jdk.
| |
| readLine | back to summary |
|---|---|
| public String readLine(Locale locale, String format, Object... args) Implements jdk.
| |
| readLine | back to summary |
|---|---|
| public String readLine() Implements jdk.
| |
| readline | back to summary |
|---|---|
| private char[] readline(boolean zeroOut) throws IOException | |
| readPassword | back to summary |
|---|---|
| public char[] readPassword(Locale locale, String format, Object... args) Implements jdk.
| |
| readPassword | back to summary |
|---|---|
| public char[] readPassword() Implements jdk.
| |
| readPassword0 | back to summary |
|---|---|
| private char[] readPassword0(boolean noNewLine, Locale locale, String format, Object... args) | |
| readPasswordNoNewLine | back to summary |
|---|---|
| public char[] readPasswordNoNewLine() | |
| writer | back to summary |
|---|---|
| public PrintWriter writer() Implements jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final Reader | |
| pack-priv boolean | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream and releases any system resources associated with it. |
| public int | read(char[] cbuf, int offset, int length)
Implements abstract java. Reads characters into a portion of an array. |
| public boolean | |
| public void |
| cb | back to summary |
|---|---|
| private final char[] cb | |
| in | back to summary |
|---|---|
| private final Reader in | |
| leftoverLF | back to summary |
|---|---|
| pack-priv boolean leftoverLF | |
| nChars | back to summary |
|---|---|
| private int nChars | |
| nextChar | back to summary |
|---|---|
| private int nextChar | |
| LineReader | back to summary |
|---|---|
| pack-priv LineReader(Reader in) | |
| close | back to summary |
|---|---|
| public void close() Implements abstract java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect. | |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int offset, int length) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |
| ready | back to summary |
|---|---|
| public boolean ready() throws IOException Overrides java. Doc from java. Tells whether this stream is ready to be read.
| |
| zeroOut | back to summary |
|---|---|
| public void zeroOut() throws IOException | |