Java IP Address Get getInputStreamFromZipFile( String zipFilePath, String resourcePath)

Here you can find the source of getInputStreamFromZipFile( String zipFilePath, String resourcePath)

Description

get Input Stream From Zip File

License

Open Source License

Declaration

protected static InputStream getInputStreamFromZipFile(
            String zipFilePath, String resourcePath) throws IOException 

Method Source Code

//package com.java2s;
import java.io.IOException;
import java.io.InputStream;

import java.net.URL;

public class Main {
    protected static InputStream getInputStreamFromZipFile(
            String zipFilePath, String resourcePath) throws IOException {
        URL metadata = new URL(String.format("jar:file:%s!/%s",
                zipFilePath, resourcePath));
        return metadata.openStream();
    }//from w  w w. ja v  a  2 s  . c  o  m
}

Related

  1. getHostIP()
  2. getHostIpAddress()
  3. getHostIPByHostName(String host)
  4. getInetIps()
  5. getIniFileInputStreamEclipse()
  6. getInterfaceAddress(final String ifaceName, final boolean ipV4)
  7. getInterfaceIPs()
  8. getInternalIp()
  9. getInternalIp()