Tuesday 21 August 2012

Recover Mysqldump Got Errno 28 On Write

     While taking Mysqldump you may got error like Backup Failed in Mysqldump Got Errno 28 On Write.
     Because of inadequate disk space to store your output file. For that you have to free up some disk space.That's all now error willl gone and working fine

Friday 10 August 2012

BufferReader


     BufferedReader reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines. It can also  read data from the files and console.It has two constructors

BufferedReader(Reader inputStream) 
BufferedReader(Reader inputStream, int bufSize)

     The first form creates a buffered character stream using a default buffer size. In the second, the size of the buffer is passed in bufSize.

     The most common Syntax for BufferedReader is

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

     This line will create a new BufferedReader object, which reads from System.in (standard input). The InputStreamReader part is used to convert System.in (which is an InputStream) to a Reader object (which can be used by BufferedReader).

     After creating br, you can read input from the user:
String input = br.readLine(); 

     That will allow the user to type in anything and hit <Enter> button, and have what they typed in stored in input.