ZipResourceManager.java


current inspection = 2009-09-03 21:56:13 (id #1)


Filter Options
Annotation Kind:
pre
presumption
post
unanalyzed
test_vector


  • void com.dmdirc.util.resourcemanager.ZipResourceManager(String)

  • Kind Annotation Text
    presumptionjava.util.Enumeration:nextElement(...)@63 != null
    presumptionjava.util.zip.ZipFile:entries(...)@61 != null
    postnew ArrayList(ZipResourceManager#2) num objects == 1
    postnew ZipFile(ZipResourceManager#1) num objects == 1
    postthis.entries == &new ArrayList(ZipResourceManag er#2)
    postthis.zipFile == &new ZipFile(ZipResourceManager #1)
    test_vectorjava.util.Enumeration:hasMoreElements(...)@62: {0}, {1}

  • com.dmdirc.util.resourcemanager.ZipResourceManager__static_init

  • Kind Annotation Text

  • ZipResourceManager getInstance(String)

  • Kind Annotation Text
    postnew ArrayList(ZipResourceManager#2) num objects == 1
    postnew ZipFile(ZipResourceManager#1) num objects == 1
    postnew ZipResourceManager(getInstance#1) num objects == 1
    postreturn_value == &new ZipResourceManager(getInst ance#1)
    postreturn_value.entries == &new ArrayList(ZipResou rceManager#2)
    postreturn_value.zipFile == &new ZipFile(ZipResourc eManager#1)
    unanalyzedcall on java.util.ArrayList
    unanalyzedcall on java.util.Enumeration:hasMoreElements
    unanalyzedcall on java.util.Enumeration:nextElement
    unanalyzedcall on java.util.List:add
    unanalyzedcall on java.util.zip.ZipEntry:getName
    unanalyzedcall on java.util.zip.ZipFile
    unanalyzedcall on java.util.zip.ZipFile:entries

  • byte[] getResourceBytes(String)

  • Kind Annotation Text
    prethis.zipFile != null
    presumptioninit'ed(com.dmdirc.logger.ErrorLevel.LOW)
    presumptionjava.util.zip.ZipEntry:getSize(...)@104 >= 0
    postnew byte[](getResourceBytes#1) num objects <= 1
    postnew byte[](getResourceBytes#1).length == 0
    postnew byte[](getResourceBytes#2) num objects <= 1
    postnew byte[](getResourceBytes#2).length == 0
    postnew byte[](getResourceBytes#3) num objects <= 1
    postnew byte[](getResourceBytes#3).length <= 264-1
    postnew byte[](getResourceBytes#5) num objects <= 1
    postnew byte[](getResourceBytes#5).length == 0
    postnew byte[](getResourceBytes#6) num objects <= 1
    postnew byte[](getResourceBytes#6).length == 0
    postnew byte[](getResourceBytes#7) num objects <= 1
    postnew byte[](getResourceBytes#7).length == 0
    postreturn_value in Addr_Set{&amp;new byte[](getResourc eBytes#3),&amp;new byte[](getResourceBytes#6), &amp;new byte[](getResourceBytes#7),&amp;new byte[](getResourceBytes#5),&amp;new byte[](getResourceBytes#2),&amp;new byte[](getResourceBytes#1)}
    test_vectorjava.util.zip.ZipEntry:isDirectory(...)@100: {0}, {1}
    test_vectorjava.util.zip.ZipFile:getEntry(...)@92: Inverse{null}, Addr_Set{null}

  • InputStream getResourceInputStream(String)

  • Kind Annotation Text
    prethis.zipFile != null
    postinit'ed(return_value)
    test_vectorjava.util.zip.ZipFile:getEntry(...)@134: Inverse{null}, Addr_Set{null}

  • Map getResourcesEndingWithAsBytes(String)

  • Kind Annotation Text
    pre(soft) this.zipFile != null
    prethis.entries != null
    presumptionjava.util.Iterator:next(...)@154 != null
    postnew HashMap(getResourcesEndingWithAsBytes#1) num objects == 1
    postreturn_value == &amp;new HashMap(getResourcesEnding WithAsBytes#1)
    unanalyzedcall on com.dmdirc.logger.Logger:userError
    unanalyzedcall on java.io.BufferedInputStream
    unanalyzedcall on java.io.BufferedInputStream:close
    unanalyzedcall on java.io.BufferedInputStream:read
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.zip.ZipEntry:getSize
    unanalyzedcall on java.util.zip.ZipEntry:isDirectory
    unanalyzedcall on java.util.zip.ZipFile:getEntry
    unanalyzedcall on java.util.zip.ZipFile:getInputStream
    test_vectorjava.lang.String:endsWith(...)@155: {0}, {1}
    test_vectorjava.util.Iterator:hasNext(...)@154: {0}, {1}

  • List getResourcesStartingWith(String)

  • Kind Annotation Text
    prethis.entries != null
    presumptionjava.util.Iterator:next(...)@199 != null
    postnew ArrayList(getResourcesStartingWith#1) num objects == 1
    postreturn_value == &amp;new ArrayList(getResourcesStar tingWith#1)
    test_vectorjava.lang.String:startsWith(...)@200: {0}, {1}
    test_vectorjava.util.Iterator:hasNext(...)@199: {0}, {1}

  • Map getResourcesStartingWithAsBytes(String)

  • Kind Annotation Text
    pre(soft) this.zipFile != null
    prethis.entries != null
    presumptionjava.util.Iterator:next(...)@169 != null
    postnew HashMap(getResourcesStartingWithAsBytes#1) num objects == 1
    postreturn_value == &amp;new HashMap(getResourcesStarti ngWithAsBytes#1)
    unanalyzedcall on com.dmdirc.logger.Logger:userError
    unanalyzedcall on java.io.BufferedInputStream
    unanalyzedcall on java.io.BufferedInputStream:close
    unanalyzedcall on java.io.BufferedInputStream:read
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.zip.ZipEntry:getSize
    unanalyzedcall on java.util.zip.ZipEntry:isDirectory
    unanalyzedcall on java.util.zip.ZipFile:getEntry
    unanalyzedcall on java.util.zip.ZipFile:getInputStream
    test_vectorjava.lang.String:startsWith(...)@170: {0}, {1}
    test_vectorjava.util.Iterator:hasNext(...)@169: {0}, {1}

  • Map getResourcesStartingWithAsInputStreams(String)

  • Kind Annotation Text
    pre(soft) this.zipFile != null
    prethis.entries != null
    presumptionjava.util.Iterator:next(...)@185 != null
    postnew HashMap(getResourcesStartingWithAsInputStreams# 1) num objects == 1
    postreturn_value == &amp;new HashMap(getResourcesStarti ngWithAsInputStreams#1)
    unanalyzedcall on java.lang.Throwable:__curr_excep_obj
    unanalyzedcall on java.util.zip.ZipFile:getEntry
    unanalyzedcall on java.util.zip.ZipFile:getInputStream
    test_vectorjava.lang.String:startsWith(...)@186: {0}, {1}
    test_vectorjava.util.Iterator:hasNext(...)@185: {0}, {1}

  • bool resourceExists(String)

  • Kind Annotation Text
    prethis.zipFile != null
    postinit'ed(return_value)