Searched defs:reader (Results 1 - 25 of 60) sorted by relevance

123

/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DResponseUtil.java105 * @param reader The reader to read from
110 public static IOException copy(Reader reader, PrintWriter writer) { argument
117 len = reader.read(buffer);
H A DIOTools.java77 * Read input from reader and write it to writer until there is no more
78 * input from reader.
80 * @param reader the reader to read from.
84 public static void flow( Reader reader, Writer writer, char[] buf ) argument
87 while ( (numRead = reader.read(buf) ) >= 0) {
95 public static void flow( Reader reader, Writer writer ) argument
98 flow( reader, writer, buf );
/glassfish-3.1.2/load-balancer/admin/src/main/java/org/glassfish/loadbalancer/admin/cli/reader/api/
H A DBaseReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
H A DIdempotentUrlPatternReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
H A DLbReaderException.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
44 * An exception that provides information on reader error.
52 * Constructs a reader exception with the specified message
63 * Constructs a reader exception with the cause.
72 * Constructs a reader exception with the specified message.
81 * Constructs a reader exception.
H A DClusterReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
H A DHealthCheckerReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
H A DInstanceReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
H A DPropertyReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
H A DWebModuleReader.java41 package org.glassfish.loadbalancer.admin.cli.reader.api;
/glassfish-3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/
H A DXMLStreamReaderFilter.java54 XMLStreamReaderFilter(XMLStreamReader reader) { argument
55 super(reader);
H A DInstanceReaderFilter.java88 XMLStreamReader reader = getParent();
89 String elementName = reader.getLocalName();
96 return handleServer(reader);
99 return handleConfig(reader);
102 return handleCluster(reader);
137 private boolean handleConfig(XMLStreamReader reader) { argument
138 String name = reader.getAttributeValue(null, NAME);
152 private boolean handleCluster(XMLStreamReader reader) { argument
153 String name = reader.getAttributeValue(null, NAME);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/process/
H A DProcessStreamDrainerWorker.java55 reader = new BufferedInputStream(in);
65 if(reader == null)
73 while ((count = reader.read(buffer)) != -1)
94 private final BufferedInputStream reader; field in class:ProcessStreamDrainerWorker
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/xml/
H A DXmlParserHelper.java52 reader = new InputStreamReader(new FileInputStream(f));
54 f.toURI().toString(), reader);
76 if (reader != null) {
77 reader.close();
86 private final InputStreamReader reader; field in class:XmlParserHelper
/glassfish-3.1.2/jbi/serviceengine/sun-javaee-engine/src/main/java/com/sun/enterprise/jbi/serviceengine/util/
H A DStAXSource.java86 XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(args[0]));
87 Source staxSource = new StAXSource(reader);
103 private final XMLStreamReaderToContentHandler reader; field in class:StAXSource
112 // it will just read from the StAX reader.
180 // parses from a StAX reader and generates SAX events which
184 reader.bridge();
217 * @param reader XMLStreamReader that will be exposed as a Source
218 * @throws IllegalArgumentException iff the reader is null
219 * @throws IllegalStateException iff the reader is not pointing at either a
222 public StAXSource(XMLStreamReader reader, boolea argument
[all...]
/glassfish-3.1.2/load-balancer/admin/src/main/java/org/glassfish/loadbalancer/admin/cli/reader/impl/
H A DClusterReaderHelper.java41 package org.glassfish.loadbalancer.admin.cli.reader.impl;
50 import org.glassfish.loadbalancer.admin.cli.reader.api.WebModuleReader;
60 import org.glassfish.loadbalancer.admin.cli.reader.api.LbReaderException;
86 * reader(s).
159 // returns the web module reader as array
H A DIdempotentUrlPatternReaderImpl.java41 package org.glassfish.loadbalancer.admin.cli.reader.impl;
45 import org.glassfish.loadbalancer.admin.cli.reader.api.LbReaderException;
46 import org.glassfish.loadbalancer.admin.cli.reader.api.IdempotentUrlPatternReader;
H A DHealthCheckerReaderImpl.java41 package org.glassfish.loadbalancer.admin.cli.reader.impl;
45 import org.glassfish.loadbalancer.admin.cli.reader.api.HealthCheckerReader;
46 import org.glassfish.loadbalancer.admin.cli.reader.api.LbReaderException;
/glassfish-3.1.2/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/
H A DGlassFishMain.java123 final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
124 while ((command = readCommand(reader)) != null) {
184 private String readCommand(BufferedReader reader) throws IOException { argument
187 while((command = reader.readLine()) != null && command.isEmpty()) {
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DMultimodeCommand.java122 BufferedReader reader = null;
128 reader = new BufferedReader(
130 reader = new BufferedReader(
139 reader = new BufferedReader(new InputStreamReader(
142 reader = new BufferedReader(new FileReader(file));
144 return executeCommands(reader);
149 if (file != null && reader != null)
150 reader.close();
163 private int executeCommands(BufferedReader reader) argument
179 if ((line = reader
[all...]
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/readers/
H A DInputReader.java57 * @param reader A reader.
59 public InputReader(Reader reader) { argument
60 this.reader = reader.markSupported() ?
61 reader : new BufferedReader(reader);
104 c = this.reader.read();
170 while ((pos < n) && ((len = reader.read(buffer, pos, n - pos)) != -1)) {
203 private Reader reader; field in class:InputReader
[all...]
H A DXmlInputReader.java53 * @param reader A reader.
55 public XmlInputReader(Reader reader) { argument
56 super(reader);
H A DXmlInputObject.java108 private static boolean parse(XmlInputReader reader, XmlInputObject context, argument
121 token = reader.nextToken();
125 character = reader.next();
127 if (reader.next() == '-') {
128 reader.skipPast("-->");
131 reader.back();
133 token = reader.nextToken();
135 if (reader.next() == '[') {
136 string = reader.nextCDATA();
143 throw reader
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/common/util/admin/
H A DAsadminInput.java110 * Returns an asadmin reader for reading from the specified URI.
115 public static InputReader reader(final String inputPath) throws URISyntaxException, IOException { method in class:AsadminInput
117 return reader(System.in);
119 return reader(new FileInputStream(inputPath));
123 * Returns a reader that can consume the specified version of asadmin input
128 public static InputReader reader(final InputStream is) throws IOException { method in class:AsadminInput
129 final BufferedReader reader = new BufferedReader(new InputStreamReader(is));
130 final String version = readVersionFromFirstLine(reader);
131 return newReader(reader, version);
134 private static InputReader newReader(final BufferedReader reader, fina argument
152 private final BufferedReader reader; field in class:AsadminInput.InputReader_1_0
159 InputReader_1_0(final BufferedReader reader) argument
189 readVersionFromFirstLine(final BufferedReader reader) argument
[all...]
/glassfish-3.1.2/extras/upgrade/upgrade-jar/src/main/java/com/sun/enterprise/tools/upgrade/common/
H A DCommands.java230 private final BufferedReader reader; field in class:Commands.StreamWatcher
234 reader = new BufferedReader(new InputStreamReader(stream));
241 String line = reader.readLine();
266 line = reader.readLine();
276 reader.close();
280 "Exception closing reader in StreamWatcher",

Completed in 367 milliseconds

123