Tabnine Logo
JarURLConnectionImpl.getJarEntry
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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;
}
origin: com.bugvm/bugvm-rt

/**
 * 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: com.mobidevelop.robovm/robovm-rt

/**
 * 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: com.gluonhq/robovm-rt

/**
 * 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: FlexoVM/flexovm

/**
 * 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.urlJarURLConnectionImplgetJarEntry

Javadoc

Returns the JarEntry of the entry referenced by this URLConnection.

Popular methods of JarURLConnectionImpl

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JButton (javax.swing)
  • JComboBox (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now