com.ptc.windchill.upgrade.modeldiff
Class Resource
java.lang.Object
com.ptc.windchill.upgrade.modeldiff.Resource
- class Resource
- extends Object
Constructor Summary |
(package private) |
Resource()
|
Method Summary |
private static void |
closeInputStream(InputStream input_stream)
If the input stream is not null, try to close it,
catching and smothering any IOException that results. |
private static InputStream |
openResourceInputStreamFor(String resource_file_name,
String description)
Tries to open an input stream to a resource with the specified file name relative to the
classpath that the CompareSchema class is loaded on. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
Resource()
openResourceInputStreamFor
private static InputStream openResourceInputStreamFor(String resource_file_name,
String description)
throws IOException
- Tries to open an input stream to a resource with the specified file name relative to the
classpath that the CompareSchema class is loaded on.
- Parameters:
resource_file_name
- Is relative to the classpath of the CompareSchema class.description
- A description of this resource, without mention of the path.
- Returns:
- InputStream The stream of data obtained from the resource file.
- Throws:
IOException
- If the resource cannot be found on the class path.
closeInputStream
private static void closeInputStream(InputStream input_stream)
- If the input stream is not null, try to close it,
catching and smothering any IOException that results.
- Parameters:
input_stream
- A non-null input stream that will no longer be accessed.