Java-CharArrayWriter

CharArrayWriter The CharArrayWriter class creates a character buffer in memory and all the character sent to one or more file is stored in the buffer. The buffer of CharArrayWriter automatically grows according to data. In this stream, the data is written into a character array. This class inherits Writer class. CharArrayWriter also has a close( … Read more…

Java-ByteArrayInputStream

ByteArrayInputStream ByteArrayInputStream class contains an internal buffer which is used to read byte array as stream. In this stream, the data is read from a byte array. Being a subclass of InputStream the ByteArrayInputStream also has a close( ) method. But calling the close( ) method has no effect on the ByteArrayInputStream. ByteArrayInputStream Constructors Constructors Description … Read more…

Java-Negative Lookbehind

Negative Lookbehind Negative lookbehind is usually useful if we want to match something not proceeded by something else. We can make our own negative lookbehinds with the lookbehind operator (?<!). For example, to match two characters not proceeded by four digit, we could use :   More Examples   Negative lookbehind After the Match Examples   Program Program Source import … Read more…