bufferedreader
Is there a simple way to preserve trailing tabs in java during file in?
BufferedReader and Scanner\'s nextLine() seem to be helping a little too much by removing all trailing whitespace. I need to preserve columns, which at the moment are allowed to be empty values, but h[详细]
2023-04-04 03:49 分类:问答Java - Scanner not scanning after a certain number of lines
I\'m doing some relatively simple I/O in Java. I have a .txt files that I\'m reading from using aScanner and a .txt file I\'m writing to using a BufferedWriter. Another Scanner then reads that file an[详细]
2023-04-03 21:07 分类:问答What is the difference between Java's BufferedReader and InputStreamReader classes?
What is the difference between Java\'s BufferedReader and InputStreamReader cl开发者_StackOverflow社区asses?BufferedReader is a wrapper for both \"InputStreamReader/FileReader\", which buffers the inf[详细]
2023-04-03 20:54 分类:问答Wait until page is loaded before reading contents from a URL in Java
I am reading from a url in my java code but the page I want to read executes a command when loaded and the InputStreamReader reads the page before it has completely loaded, so my buffered reader only[详细]
2023-04-03 14:19 分类:问答can constructors have bufferedReader objects in java
In C++ its possible to have a default stream l开发者_JAVA技巧ike class c { public: c(istream fin =cin):fin(fin){}[详细]
2023-04-03 04:06 分类:问答Ctrl-z and BufferedReader
I dont know what I\'m doing wrong. When I hit control-z, I expected the \"done\" statement to be printed on the screen. But it does not print it.Please let me know why.[详细]
2023-04-02 14:42 分类:问答How to readLine with echo in Java?
I would like to use a BufferedReader with a kind of readLine() (or similar) that can return an echo for every keystroke pressed.[详细]
2023-04-01 15:50 分类:问答How can I read in data from a socket and write it to a file?
What I am trying to do is to read in data from a socket connection then wr开发者_如何学JAVAite all of that to a file. My reader and all the related statements are below. Any ideas why it is not workin[详细]
2023-04-01 14:19 分类:问答Using the scanner class to parse a file but it takes far too long to run
I have a file containing around 39000 ints seperated by commas with 13 ints on each line so i set up a file reader and a scanner to read and parse it however it litterally takes over an hour to run. I[详细]
2023-03-30 02:43 分类:问答Reading from Socket
I am having issues getting this simple class to work. It basically connects to an IMAP server and reads the banner. But after reading all chars, it is somewhat hanging. In the debugger I can step thro[详细]
2023-03-28 17:55 分类:问答