public class PasswordReader extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
class |
PasswordReader.IOError
Our own implementation of the Java 1.6 IOError class.
|
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
PasswordReader()
Use
getInstance() instead. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static PasswordReader |
getInstance() |
char[] |
readPassword(String fmt,
Object... args)
Matches the contract of Java 1.6+'s
Console.readPassword(java.lang.String, java.lang.Object...)
except that our own IOError is thrown in place of the 1.6-specific IOError. |
protected PasswordReader()
getInstance() instead.public static PasswordReader getInstance()
public char[] readPassword(String fmt, Object... args)
Console.readPassword(java.lang.String, java.lang.Object...)
except that our own IOError is thrown in place of the 1.6-specific IOError.
By matching the contract we can use this implementation when
running in a 1.5 JVM or the much better implementation that
was introduced in 1.6 when running in a JVM that supplies it.fmt - args - Copyright © 2016. All Rights Reserved.