MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / closeSafe

Method closeSafe

src/com/cloudream/ishow/util/BitmapUtils.java:624–636  ·  view source on GitHub ↗

Close the given closeable object (Stream) in a safe way: check if it is null and catch-log exception thrown. @param closeable the closable object to close

(Closeable closeable)

Source from the content-addressed store, hash-verified

622 * @param closeable the closable object to close
623 */
624 private static void closeSafe(Closeable closeable)
625 {
626 if(closeable != null)
627 {
628 try
629 {
630 closeable.close();
631 }
632 catch(IOException ignored)
633 {
634 }
635 }
636 }
637 // endregion
638
639 // region: Inner class: DecodeBitmapResult

Callers 4

writeBitmapToUriMethod · 0.95
decodeImageForOptionMethod · 0.95
decodeImageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected