Codota Logo
JarURLConnectionImpl.connect
Code IndexAdd Codota to your IDE (free)

How to use
connect
method
in
libcore.net.url.JarURLConnectionImpl

Best Java code snippets using libcore.net.url.JarURLConnectionImpl.connect (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: robovm/robovm

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: robovm/robovm

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: robovm/robovm

/**
 * Creates an input stream for reading from this URL Connection.
 *
 * @return the input stream
 *
 * @throws IOException
 *             if an IO error occurs while connecting to the resource.
 */
@Override
public InputStream getInputStream() throws IOException {
  if (closed) {
    throw new IllegalStateException("JarURLConnection InputStream has been closed");
  }
  connect();
  if (jarInput != null) {
    return jarInput;
  }
  if (jarEntry == null) {
    throw new IOException("Jar entry not specified");
  }
  return jarInput = new JarURLConnectionInputStream(jarFile
      .getInputStream(jarEntry), jarFile);
}
origin: robovm/robovm

/**
 * Returns the object pointed by this {@code URL}. If this URLConnection is
 * pointing to a Jar File (no Jar Entry), this method will return a {@code
 * JarFile} If there is a Jar Entry, it will return the object corresponding
 * to the Jar entry content type.
 *
 * @return a non-null object
 *
 * @throws IOException
 *             if an IO error occurred
 *
 * @see ContentHandler
 * @see ContentHandlerFactory
 * @see java.io.IOException
 * @see #setContentHandlerFactory(ContentHandlerFactory)
 */
@Override
public Object getContent() throws IOException {
  connect();
  // if there is no Jar Entry, return a JarFile
  if (jarEntry == null) {
    return jarFile;
  }
  return super.getContent();
}
origin: robovm/robovm

/**
 * Returns the content length of the resource. Test cases reveal that if the
 * URL is referring to a Jar file, this method answers a content-length
 * returned by URLConnection. For jar entry it should return it's size.
 * Otherwise, it will return -1.
 *
 * @return the content length
 */
@Override
public int getContentLength() {
  try {
    connect();
    if (jarEntry == null) {
      return jarFileURLConnection.getContentLength();
    }
    return (int) getJarEntry().getSize();
  } catch (IOException e) {
    // Ignored
  }
  return -1;
}
origin: robovm/robovm

} else {
  try {
    connect();
    cType = jarFileURLConnection.getContentType();
  } catch (IOException ioe) {
origin: MobiVM/robovm

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: ibinti/bugvm

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: FlexoVM/flexovm

/**
 * Returns the Jar file referred by this {@code URLConnection}.
 *
 * @throws IOException
 *             thrown if an IO error occurs while connecting to the
 *             resource.
 */
@Override
public JarFile getJarFile() throws IOException {
  connect();
  return jarFile;
}
origin: MobiVM/robovm

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: ibinti/bugvm

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: FlexoVM/flexovm

/**
 * Returns the JarEntry of the entry referenced by this {@code
 * URLConnection}.
 *
 * @return the JarEntry referenced
 *
 * @throws IOException
 *             if an IO error occurs while getting the entry
 */
@Override
public JarEntry getJarEntry() throws IOException {
  connect();
  return jarEntry;
}
origin: MobiVM/robovm

/**
 * Returns the content length of the resource. Test cases reveal that if the
 * URL is referring to a Jar file, this method answers a content-length
 * returned by URLConnection. For jar entry it should return it's size.
 * Otherwise, it will return -1.
 *
 * @return the content length
 */
@Override
public int getContentLength() {
  try {
    connect();
    if (jarEntry == null) {
      return jarFileURLConnection.getContentLength();
    }
    return (int) getJarEntry().getSize();
  } catch (IOException e) {
    // Ignored
  }
  return -1;
}
origin: ibinti/bugvm

/**
 * Returns the content length of the resource. Test cases reveal that if the
 * URL is referring to a Jar file, this method answers a content-length
 * returned by URLConnection. For jar entry it should return it's size.
 * Otherwise, it will return -1.
 *
 * @return the content length
 */
@Override
public int getContentLength() {
  try {
    connect();
    if (jarEntry == null) {
      return jarFileURLConnection.getContentLength();
    }
    return (int) getJarEntry().getSize();
  } catch (IOException e) {
    // Ignored
  }
  return -1;
}
libcore.net.urlJarURLConnectionImplconnect

Popular methods of JarURLConnectionImpl

  • <init>
  • findJarEntry
    Look up the JarEntry of the entry referenced by this URLConnection.
  • findJarFile
    Returns the Jar file referred by this URLConnection
  • getEntryName
  • getJarEntry
    Returns the JarEntry of the entry referenced by this URLConnection.
  • getJarFileURL
  • getUseCaches
  • guessContentTypeFromName
  • openJarFile

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now