Searched refs:getContent (Results 1 - 12 of 12) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DContentHandler.java28 * @see URL#getContent()
29 * @see URLConnection#getContent()
41 public abstract Object getContent(URLConnection uConn) throws IOException; method in class:ContentHandler
57 public Object getContent(URLConnection uConn, Class[] types) method in class:ContentHandler
59 Object content = getContent(uConn);
H A DURLConnection.java188 public Object getContent() throws java.io.IOException { method in class:URLConnection
199 return getContentHandler(contentType).getContent(this);
222 public Object getContent(Class[] types) throws IOException { method in class:URLConnection
233 return getContentHandler(contentType).getContent(this, types);
1016 public Object getContent(URLConnection u) throws IOException { method in class:URLConnection.DefaultContentHandler
H A DURL.java454 public final Object getContent() throws IOException { method in class:URL
455 return openConnection().getContent();
459 * Equivalent to {@code openConnection().getContent(types)}.
462 public final Object getContent(Class[] types) throws IOException { method in class:URL
463 return openConnection().getContent(types);
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DContentHandlerTest.java30 * java.net.ContentHandler#getContent(java.net.URLConnection,
38 Object content = handler.getContent(conn, classes);
42 content = handler.getContent(conn, classes);
47 content = handler.getContent(conn, classes2);
57 public Object getContent(URLConnection uConn) throws IOException { method in class:ContentHandlerImpl
H A DContentHandlerFactoryTest.java44 con.getContent();
54 con.getContent(new Class[] {});
80 assertNotNull(ch.getContent(url.openConnection()));
132 public Object getContent(URLConnection u) { method in class:ContentHandlerFactoryTest.TestContentHandler
H A DURLConnectionTest.java349 * {@link java.net.URLConnection#getContent()}
355 Object obj = fileURLCon.getContent();
375 fakeCon.getContent();
382 uc.getContent();
390 * {@link java.net.URLConnection#getContent(Class[])}
398 InputStream helloWorld2 = (InputStream) fileURLCon.getContent(new Class[] {InputStream.class});
404 String test = (String) fileURLCon.getContent(new Class[] {String.class} );
410 uc.getContent();
416 ((InputStream) fileURLCon.getContent(null)).read(ba, 0, 600);
423 ((InputStream) fileURLCon.getContent(ne
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldCookieHandlerTest.java50 conn.getContent();
53 conn.getContent();
H A DOldURLTest.java259 InputStream output = (InputStream) fileURL.getContent();
270 invalidFile.getContent();
330 is = (InputStream) u.getContent(new Class[] { Object.class });
701 is = (InputStream) u.getContent(new Class[] {InputStream.class});
710 is = (InputStream) u.getContent(new Class[] {
723 s = (String) u.getContent(new Class[] {String.class});
H A DURLConnectionTest.java2016 InputStream in = (InputStream) connection.getContent();
2025 connection.getContent(null);
2030 connection.getContent(new Class[] { null });
2034 assertNull(connection.getContent(new Class[] { getClass() }));
/libcore/luni/src/main/java/libcore/net/url/
H A DJarURLConnectionImpl.java297 public Object getContent() throws IOException { method in class:JarURLConnectionImpl
303 return super.getContent();
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/
H A DContentInfo.java70 public Object getContent() { method in class:ContentInfo
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURLTest.java732 * java.net.URL#getContent()
735 // Test for method java.lang.Object java.net.URL.getContent()
745 is = (InputStream) u.getContent();
761 * java.net.URL#getContent(class[])
775 is = (InputStream) u.getContent(new Class[] { Object.class });

Completed in 168 milliseconds