Well you cannot create a FileReader object from a string because it is a FileReader !
You can however, create a StringReader directly from a string, or a ByteArrayInputStream using the String.getBytes() method. Either of these will probably suit your needs. See the java.io package.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.