823824825826827828829830831832833
WriteStream out = null; try { Path path = env.getPwd().lookup(_cookieFilename); out = path.openWrite(); int len = _cookie.length(); for (int i = 0; i < len; i++) { out.write((byte)_cookie.charAt(i));
720721722723724725726727728729730
{ if (_lineMap != null) { Path dstPath = getWriteStream().getPath(); Path smap = dstPath.getParent().lookup(dstPath.getTail() + ".smap"); WriteStream out = smap.openWrite(); try { // String srcName = _lineMap.getLastSourceFilename(); LineMapWriter writer = new LineMapWriter(out);
565566567568569570571572573574575
try { WriteStream out; if (isReturn) { StringWriter writer = new StringWriter(); out = writer.openWrite(); out.setNewlineString("\n"); v.printR(env, out, 0, new IdentityHashMap<Value, String>());
366367368369370371372373374375376
quercus.init(); quercus.start(); StringWriter writer = new StringWriter(new CharBuffer(1024)); writer.openWrite(); ByteArrayInputStream bais = new ByteArrayInputStream(templateAsString.getBytes()); VfsStream stream = new VfsStream(bais, null); QuercusPage page = quercus.parse(new ReadStream(stream));
412413414415416417418419420421422
591592593594595596597598599600601
6869707172737475767778
Throwable thrown = record.getThrown(); try { if (thrown != null) { StringWriter sw = new StringWriter(); WriteStream os = sw.openWrite(); if (message != null && ! message.equals(thrown.toString()) && ! message.equals(thrown.getMessage())) os.println(message);
596597598599600601602603604605606
private StringValue saveToString(Env env, DOMNode node, boolean isHTML) { TempStream tempStream = new TempStream(); try { tempStream.openWrite(); WriteStream os = new WriteStream(tempStream); saveToStream(node, os, isHTML); os.close();