Home | History | Annotate | Download | only in com.example.android.permissionrequest

Lines Matching defs:output

121         PrintStream output = null;
137 // Output stream that we send the response to
138 output = new PrintStream(socket.getOutputStream());
142 writeServerError(output);
147 writeServerError(output);
152 output.println("HTTP/1.0 200 OK");
153 output.println("Content-Type: " + detectMimeType(route));
154 output.println("Content-Length: " + bytes.length);
155 output.println();
156 output.write(bytes);
157 output.flush();
159 if (null != output) {
160 output.close();
169 * Writes a server error response (HTTP/1.0 500) to the given output stream.
171 * @param output The output stream.
173 private void writeServerError(PrintStream output) {
174 output.println("HTTP/1.0 500 Internal Server Error");
175 output.flush();
188 ByteArrayOutputStream output = new ByteArrayOutputStream();
193 output.write(buffer, 0, size);
195 output.flush();
196 return output.toByteArray();