public static ReadStreamOld open ( String string ) { VfsStringReader ss = new VfsStringReader ( string ) ; ReadStreamOld rs = new ReadStreamOld ( ss ) ; try { rs . setEncoding ( "UTF-8" ) ; } catch ( Exception e ) { } //rs.setPath(new NullPath("string")); return rs ; }
Creates a new ReadStream reading bytes from the given string .