public String getMuffin ( String strParam ) { try { URL url = new URL ( m_strCodeBase + strParam ) ; FileContents fc = m_ps . get ( url ) ; if ( fc == null ) return null ; // read in the contents of a muffin byte [ ] buf = new byte [ ( int ) fc . getLength ( ) ] ; InputStream is = fc . getInputStream ( ) ; int pos = 0 ; while ( ( pos = is . read ( buf , pos , buf . length - pos ) ) > 0 ) { // just loop } is . close ( ) ; String strValue = new String ( buf , ENCODING ) ; return strValue ; } catch ( Exception ex ) { // Return null for any exception } return null ; }
Get the current value for this muffin .