Searched refs:writer (Results 1 - 25 of 78) sorted by relevance

1234

/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/generator/
H A DTextClassWriter.java57 Writer writer; field in class:TextClassWriter
71 writer = new BufferedWriter(fstream);
78 writer.write("@Path(\"/" + resourcePath + "/\")\n");
81 writer.write("public class " + className + " extends " + baseClassName + " {\n\n");
86 writer.write("package org.glassfish.admin.rest.resources.generated;\n");
90 writer.write("/*\n");
91 writer.write(" * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.\n");
92 writer.write(" *\n");
93 writer.write(" * Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.\n");
94 writer
[all...]
H A DASMResourcesGenerator.java57 ClassWriter writer = new ASMClassWriter( habitat,className, baseClassName, resourcePath);
58 return writer;
/glassfish-3.1.2/tests/community/web/helloworld/src/java/
H A DHelloServlet.java81 PrintWriter writer = response.getWriter();
83 writer.println("<html>");
84 writer.println("<head>");
85 writer.println("<title>Sample Application Servlet Page</title>");
86 writer.println("</head>");
87 writer.println("<body bgcolor=white>");
89 writer.println("<table border=\"0\">");
90 writer.println("<tr>");
91 writer.println("<td>");
92 //writer
[all...]
/glassfish-3.1.2/tests/quicklook/security/helloworld/src/java/
H A DHelloServlet.java81 PrintWriter writer = response.getWriter();
83 writer.println("<html>");
84 writer.println("<head>");
85 writer.println("<title>Sample Application Servlet Page</title>");
86 writer.println("</head>");
87 writer.println("<body bgcolor=white>");
89 writer.println("<table border=\"0\">");
90 writer.println("<tr>");
91 writer.println("<td>");
92 //writer
[all...]
/glassfish-3.1.2/tests/quicklook/web/helloworld/src/java/
H A DHelloServlet.java81 PrintWriter writer = response.getWriter();
83 writer.println("<html>");
84 writer.println("<head>");
85 writer.println("<title>Sample Application Servlet Page</title>");
86 writer.println("</head>");
87 writer.println("<body bgcolor=white>");
89 writer.println("<table border=\"0\">");
90 writer.println("<tr>");
91 writer.println("<td>");
92 //writer
[all...]
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/common/
H A DHTMLActionReporter.java67 PrintWriter writer = new PrintWriter(os);
68 writer.print("<html><head/>");
69 writer.println("<body>" +
72 writer.println("Exit Code : " + this.exitCode);
73 writer.println("<hr>");
74 write(2, topMessage, writer);
75 writer.println("<hr>");
77 writer.println("Exception raised during operation : <br>");
78 writer.println("<pre>");
79 exception.printStackTrace(writer);
89 write(int level, MessagePart part, PrintWriter writer) argument
106 write(Properties props, PrintWriter writer) argument
[all...]
H A DJsonActionReporter.java77 PrintWriter writer = new PrintWriter(os);
79 write(topMessage, writer);
81 writer.println("Exception raised during operation : <br>");
82 exception.printStackTrace(writer);
85 writer.println(quote(", number_subactions") + ":" + quote("" + subActions.size()));
87 writer.flush();
90 private void write(MessagePart part, PrintWriter writer) { argument
91 writer.println("{ " + quote("name") + ":" + quote(part.getMessage()));
93 writer.println(", " + quote("command") + ":" + quote(actionDescription));
94 writer
119 writeProperties(Properties props, PrintWriter writer) argument
[all...]
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/util/
H A DPrintWriterAdapter.java53 private transient PrintWriter writer; field in class:PrintWriterAdapter
55 public PrintWriterAdapter(PrintWriter writer) { argument
56 super(writer); // since all the methods of super-class is overridden, writer will not be used.
57 this.writer = writer;
72 if (writer == null) {
73 writer = getResourceAdapterLogWriter();
79 writer.flush();
84 writer
[all...]
/glassfish-3.1.2/jbi/serviceengine/sun-javaee-engine/src/main/java/com/sun/enterprise/jbi/serviceengine/util/soap/
H A DMessageDenormalizerImpl.java162 Writer writer = null;
169 writer = new OutputStreamWriter(bufferedStream, "UTF-8");
171 writeEnvelopeHeader(writer);
175 // Writer the header to the writer instance.
176 writeHeader(normalizedMessage, writer);
180 writeBody(normalizedMessage, operation, isResponse, writer);
181 writeEnvelopeFooter(writer);
182 writer.flush();
218 closeWriter(writer);
251 Writer writer
311 writeBody( NormalizedMessage normalizedMessage, Operation operation, boolean isResponse, Writer writer) argument
349 writeHeader(NormalizedMessage normalizedMessage, Writer writer) argument
395 writeBodyHeader( Operation operation, Writer writer, boolean isEmptyResponse) argument
423 writeBodyFooter( Operation operation, Writer writer, boolean isEmptyResponse) argument
475 closeWriter(Writer writer) argument
500 writeEnvelopeHeader(Writer writer) argument
520 writeEnvelopeFooter(Writer writer) argument
536 writeFault(Exception exception, String faultCode, Writer writer) argument
649 writeFaultDetail(Fault faultMessage, Writer writer) argument
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/
H A DSSIPrintenv.java77 String[] paramNames, String[] paramValues, PrintWriter writer) {
82 writer.write(errorMessage);
95 writer.write(variableName);
96 writer.write('=');
97 writer.write(variableValue);
98 writer.write('\n');
76 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
H A DSSICommand.java74 * Write the output of the command to the writer.
84 * @param writer
85 * the writer to output to
91 String[] paramNames, String[] paramValues, PrintWriter writer)
90 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
H A DSSIExec.java87 String[] paramNames, String[] paramValues, PrintWriter writer) {
96 writer);
108 IOTools.flow(stdErrReader, writer, buf);
109 IOTools.flow(stdOutReader, writer, buf);
114 writer.write(configErrMsg);
86 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
H A DSSISet.java76 String[] paramNames, String[] paramValues, PrintWriter writer)
95 writer.write(errorMessage);
100 writer.write(errorMessage);
75 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
H A DSSIEcho.java81 String[] paramNames, String[] paramValues, PrintWriter writer) {
95 writer.write(errorMessage);
99 writer.write(errorMessage);
107 writer.write(variableValue);
80 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
H A DSSIFlastmod.java82 String[] paramNames, String[] paramValues, PrintWriter writer) {
98 writer.write(formatDate(date, configTimeFmt));
102 writer.write(configErrMsg);
108 writer.write(configErrMsg);
81 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
H A DSSIInclude.java78 String[] paramNames, String[] paramValues, PrintWriter writer) {
94 writer.write(text);
98 writer.write(configErrMsg);
103 writer.write(configErrMsg);
77 process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) argument
/glassfish-3.1.2/build/maven-glassfishbuild-plugin/src/main/java/com/sun/enterprise/build/
H A DDashboardWikiGenerator.java64 PrintWriter writer = null; field in class:DashboardWikiGenerator
71 * Sets the writer associated with his generator
73 * @param writer the writer associated with this generator
76 public void beginDistribution(PrintWriter writer, MavenProject distribution) { argument
77 this.writer = writer;
80 writer.append("!!! Dashboard for the ").append(distribution.getArtifactId()).append(":").append(
93 writer.println("!! " + categoryName + " List");
106 writer
[all...]
H A DContributorsWikiGenerator.java60 PrintWriter writer = null; field in class:ContributorsWikiGenerator
67 * Sets the writer associated with his generator
69 * @param writer the writer associated with this generator
72 public void beginDistribution(PrintWriter writer, MavenProject distribution) { argument
73 this.writer = writer;
76 writer.append("!!! Contributors list for the ").append(distribution.getArtifactId()).append(":").append(
79 writer.println("%%sortable");
80 writer
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DIOTools.java77 * Read input from reader and write it to writer until there is no more
81 * @param writer the writer to write to.
84 public static void flow( Reader reader, Writer writer, char[] buf ) argument
88 writer.write(buf, 0, numRead);
95 public static void flow( Reader reader, Writer writer )
98 flow( reader, writer, buf );
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/logger/
H A DFileLogger.java142 private PrintWriter writer = null; field in class:FileLogger
275 if (writer != null) {
277 writer.println(tsString + " " + msg);
279 writer.println(msg);
294 if (writer == null)
296 writer.flush();
297 writer.close();
298 writer = null;
319 writer = new PrintWriter(new FileWriter(pathname, true), true);
321 writer
[all...]
/glassfish-3.1.2/jbi/serviceengine/sun-javaee-engine/src/main/java/com/sun/enterprise/jbi/serviceengine/util/
H A DDOMUtil.java86 * of the reader to the current node of the writer.
89 * @param writer XMLStreamWriter pointing to a START_ELEMENT.
91 void writeAttributes(XMLStreamReader reader, XMLStreamWriter writer) argument
96 writer.writeNamespace(reader.getNamespacePrefix(i),
102 writer.writeAttribute(attrNs,
107 writer.writeAttribute(reader.getAttributeLocalName(i),
115 XMLStreamWriter writer,
121 writer.writeNamespace(prefix, namespace);
161 * @param writer XMLStreamWriter to where the contents should be written.
164 public void writeNode(XMLStreamReader reader, XMLStreamWriter writer) throw argument
113 writeAncestorNamespaceAttrs( XMLStreamReader reader, XMLStreamWriter writer, Map<String,String> ancestorNamespaceAttrs) argument
168 writeChildren(XMLStreamReader reader, XMLStreamWriter writer) argument
172 writeNode( XMLStreamReader reader, XMLStreamWriter writer, Map<String,String> ancestorNamespaceAttrs) argument
213 writeChildren( XMLStreamReader reader, XMLStreamWriter writer, Map<String,String> ancestorNamespaceAttrs) argument
230 writeNode(Node node, XMLStreamWriter writer) argument
234 writeChildren(XMLStreamWriter writer, Node node) argument
246 writeNode(Node node, XMLStreamWriter writer, Map<String,String> resolvedPrefixes) argument
319 writeChildren(XMLStreamWriter writer, Node node, Map<String,String> resolvedPrefixes) argument
[all...]
/glassfish-3.1.2/tests/embedded/mysql/src/main/java/org/glassfish/tests/embedded/web/
H A DMySqlTestServlet.java98 PrintWriter writer = httpServletResponse.getWriter();
100 writer.println("DS = " + myDB);
101 writer.println("EM = " + em);
103 writer.println("connection = " + connection);
114 ex.printStackTrace(writer);
116 writer.flush();
117 writer.close();
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/schemadoc/
H A DHtmlFormat.java124 private void println(final PrintWriter writer, final String text) { argument
125 writer.println(text);
126 writer.flush();
189 private void footer(final PrintWriter writer) { argument
190 writer.println("</body></HTML>");
191 writer.flush();
192 writer.close();
203 PrintWriter writer = null;
207 writer = new PrintWriter(new File(dir, resource));
211 writer
223 printKeyValue(final PrintWriter writer, Object value) argument
235 printHeaderRow(final PrintWriter writer, final String... values) argument
[all...]
/glassfish-3.1.2/jbi/serviceengine/sun-javaee-engine/src/main/java/com/sun/enterprise/jbi/serviceengine/comm/
H A DWrappedMessage.java178 private void writeJBIHeader(XMLStreamWriter writer) throws Exception { argument
179 writer.writeStartDocument();
180 writer.writeStartElement(WRAPPER_MESSAGE_QNAME);
181 writeMessageAttributes(writer, wsdlMessageName);
184 private void writeJBIFooter(XMLStreamWriter writer) throws Exception { argument
185 writer.writeEndElement();
186 writer.writeEndDocument();
187 writer.flush();
205 XMLStreamWriter writer = XOF.createXMLStreamWriter(baos, "UTF-8");
207 writeJBIHeader(writer);
299 writeJBIParts( XMLStreamReader payLoad, XMLStreamWriter writer, Map<String,String> ancestorNamespaceAttrs) argument
[all...]
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/
H A DLineTokenReplacer.java80 BufferedWriter writer = null;
87 writer = new BufferedWriter(new OutputStreamWriter(outputStream, charset));
91 writer = new BufferedWriter(new FileWriter(outputFile));
96 writer.write(modifiedLine);
97 writer.newLine();
108 if (writer != null)
109 writer.close();

Completed in 121 milliseconds

1234