Java tutorial
//package com.java2s; /*L * Copyright Northwestern University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.io/psc/LICENSE.txt for details. */ import java.io.InputStream; public class Main { public static InputStream getWsddStream(Class<?> clientClass) { InputStream wsdd = clientClass.getResourceAsStream("client-config.wsdd"); if (wsdd == null) { throw new IllegalStateException( "Could not find client-config.wsdd relative to " + clientClass.getName()); } return wsdd; } }