Searched refs:getContent (Results 1 - 11 of 11) 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);
1017 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.java46 con.getContent();
56 con.getContent(new Class[] {});
82 assertNotNull(ch.getContent(url.openConnection()));
134 public Object getContent(URLConnection u) { method in class:ContentHandlerFactoryTest.TestContentHandler
H A DURLConnectionTest.java343 * {@link java.net.URLConnection#getContent()}
349 Object obj = fileURLCon.getContent();
369 fakeCon.getContent();
376 uc.getContent();
384 * {@link java.net.URLConnection#getContent(Class[])}
392 InputStream helloWorld2 = (InputStream) fileURLCon.getContent(new Class[] {InputStream.class});
398 String test = (String) fileURLCon.getContent(new Class[] {String.class} );
404 uc.getContent();
410 ((InputStream) fileURLCon.getContent(null)).read(ba, 0, 600);
417 ((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.java2090 InputStream in = (InputStream) connection.getContent();
2099 connection.getContent(null);
2104 connection.getContent(new Class[] { null });
2108 assertNull(connection.getContent(new Class[] { getClass() }));
/libcore/luni/src/main/java/libcore/net/url/
H A DJarURLConnectionImpl.java299 public Object getContent() throws IOException { method in class:JarURLConnectionImpl
305 return super.getContent();
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/
H A DContentInfo.java70 public Object getContent() { method in class:ContentInfo

Completed in 435 milliseconds