Update of /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28595/smartfrog/src/org/smartfrog
Modified Files:
SFSystem.java
Log Message:
no message
Index: SFSystem.java
===================================================================
RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/SFSystem.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** SFSystem.java 11 Aug 2004 08:56:03 -0000 1.39
--- SFSystem.java 20 Aug 2004 12:54:56 -0000 1.40
***************
*** 487,497 ****
* @see SFClassLoader
*/
! public static InputStream getInputStreamForResource(String resourceSFURL)
! throws SmartFrogException{
InputStream is = null;
is = SFClassLoader.getResourceAsStream(resourceSFURL);
if(is == null) {
! throw new SmartFrogException(MessageUtil.
! formatMessage(MSG_FILE_NOT_FOUND, resourceSFURL));
}
return is;
--- 487,495 ----
* @see SFClassLoader
*/
! public static InputStream getInputStreamForResource(String resourceSFURL) throws SmartFrogException {
InputStream is = null;
is = SFClassLoader.getResourceAsStream(resourceSFURL);
if(is == null) {
! throw new SmartFrogException(MessageUtil.formatMessage(MSG_FILE_NOT_FOUND, resourceSFURL));
}
return is;
***************
*** 507,516 ****
* @see SFClassLoader
*/
! public static byte[] getByteArrayForResource(String resourceSFURL) throws
! SmartFrogException {
try {
! DataInputStream iStrm = new DataInputStream(
! getInputStreamForResource(
! resourceSFURL));
byte resourceData[];
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
--- 505,511 ----
* @see SFClassLoader
*/
! public static byte[] getByteArrayForResource(String resourceSFURL) throws SmartFrogException {
try {
! DataInputStream iStrm = new DataInputStream(getInputStreamForResource(resourceSFURL));
byte resourceData[];
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
|