Ejemplo n.º 1
0
 public ReverseCodeTableHash(Stream byteStream)
 {
     try
     {
         var reader = new ReverseCodeTableXmlReader();
         reader.Read(byteStream);
         charsets  = reader.CharSets;
         combining = reader.CombiningChars;
     }
     catch (Exception e)
     {
         throw new MarcException(e.Message, e);
     }
 }
Ejemplo n.º 2
0
 public ReverseCodeTableHash(Uri uri)
 {
     try
     {
         using (var stream = WebRequest.Create(uri).GetResponse().GetResponseStream())
         {
             var reader = new ReverseCodeTableXmlReader();
             reader.Read(stream);
             charsets  = reader.CharSets;
             combining = reader.CombiningChars;
         }
     }
     catch (Exception e)
     {
         throw new MarcException(e.Message, e);
     }
 }
Ejemplo n.º 3
0
 public ReverseCodeTableHash(String filename)
 {
     try
     {
         using (var fs = new FileStream(filename, FileMode.Open))
         {
             var reader = new ReverseCodeTableXmlReader();
             reader.Read(fs);
             charsets  = reader.CharSets;
             combining = reader.CombiningChars;
         }
     }
     catch (Exception e)
     {
         throw new MarcException(e.Message, e);
     }
 }