Constructor Summary | |
---|---|
StringTokenizer(String str)
Constructs a string tokenizer for the specified string. |
|
StringTokenizer(String str,
String delim)
Constructs a string tokenizer for the specified string, using the characters in delim as separtors. |
Method Summary | |
---|---|
int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method can be called before it generates an
exception. |
boolean |
hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string. |
String |
nextToken()
Returns the next token from this string tokenizer. |
Constructor Summary | |
PrintWriter(String filename)
Creates a new PrintWriter, without automatic line flushing, with the specified file name. |
Method Summary | |
void |
close()
Close the stream. |
void |
print(String x)
Print a String. |
void |
println(String x)
Print a String and then terminate the line. |
Constructor Summary | |
---|---|
FileInputStream(String name)
Creates a FileInputStream by
opening a connection to an actual file,
the file named by the path name name
in the file system. |
Constructor Summary | |
---|---|
Scanner(InputStream source)
Constructs a new Scanner that produces values scanned
from the specified input stream. |
Method Summary | |
---|---|
void |
close()
Closes this scanner (and the underlying file). |
boolean |
hasNextLine()
Returns true if there is another line in the input of this scanner. |
String |
nextLine()
Advances this scanner past the current line and returns the input that was skipped. |
Method Summary | |
---|---|
String |
getName()
Returns the name of the file or directory denoted by this abstract pathname. |
String |
getPath()
Converts this abstract pathname into a pathname string. |
Constructor Summary | |
---|---|
JFileChooser()
Constructs a JFileChooser pointing to the user's
default directory. |
|
JFileChooser(File currentDirectory)
Constructs a JFileChooser using the given File
as the path. |
|
JFileChooser(String currentDirectoryPath)
Constructs a JFileChooser using the given path. |
Method Summary | |
---|---|
File |
getSelectedFile()
Returns the selected file. |
int |
showOpenDialog(Component parent)
Pops up an "Open File" file chooser dialog. The parent should
usually be the main window (JFrame ) for the program. |
int |
showSaveDialog(Component parent)
Pops up a "Save File" file chooser dialog. |