Example #1
0
 public Reader retrieve(ExternalReference externalReference, String _string)
 {
     try
     {
         Reader _in = new java.io.InputStreamReader(externalReference.getUri().toURL().openConnection().getInputStream(), "UTF-8");
         char[] buf = new char[4096];
         StringBuilder sb = new StringBuilder();
         for (int n; (n = _in.read(buf)) > 0; )
         {
             sb.Append(buf, 0, n);
         }
         return new java.io.StringReader(sb.ToString());
     }
     catch (Exception ex)
     {
         throw new UriCallbackException(externalReference, ex);
     }
 }
 public Reader retrieve(ExternalReference externalReference, String _string)
 {
     try
     {
         Reader        _in = new java.io.InputStreamReader(externalReference.getUri().toURL().openConnection().getInputStream(), "UTF-8");
         char[]        buf = new char[4096];
         StringBuilder sb  = new StringBuilder();
         for (int n; (n = _in.read(buf)) > 0;)
         {
             sb.Append(buf, 0, n);
         }
         return(new java.io.StringReader(sb.ToString()));
     }
     catch (Exception ex)
     {
         throw new UriCallbackException(externalReference, ex);
     }
 }
Example #3
0
 public java.net.URI rewrite(ExternalReference externalReference, String _string)
 {
     return new java.net.URI(retrievedUri.resolve(Uri.parse(externalReference.getUri().toString())).ToString());
 }
 public java.net.URI rewrite(ExternalReference externalReference, String _string)
 {
     return(new java.net.URI(retrievedUri.resolve(Uri.parse(externalReference.getUri().toString())).ToString()));
 }