Пример #1
0
 /// <summary>
 /// Creates a new Capabilities from a <see cref="System.IO.TextReader"/>.
 /// </summary>
 /// <param name="input">
 /// The <see cref="System.IO.TextReader"/> that contains the
 /// PrintCapabilities document.
 /// </param>
 /// <returns>
 /// A <see cref="Capabilities"/> containing the content of the specified
 /// <see cref="System.IO.TextReader"/>.
 /// </returns>
 public static Capabilities Load(System.IO.TextReader input)
 {
     using (var reader = XmlReader.Create(input))
     {
         return(PrintSchemaReader.ReadCapabilities(reader));
     }
 }
Пример #2
0
 /// <summary>
 /// Creates a new Capabilities instance from the data contained in the
 /// specified stream.
 /// </summary>
 /// <param name="stream">The stream that contains the XML data.</param>
 /// <returns>
 /// A <see cref="Capabilities"/> populated from the data contained in the stream.
 /// </returns>
 public static Capabilities Load(System.IO.Stream stream)
 {
     using (var reader = XmlReader.Create(stream))
     {
         return(PrintSchemaReader.ReadCapabilities(reader));
     }
 }
Пример #3
0
 /// <summary>
 /// Creates a new Capabilities from the <see cref="XmlReader"/>.
 /// </summary>
 /// <param name="reader">
 /// The XmlReader that contains the PrintCapabilities document.
 /// </param>
 /// <returns>
 /// A <see cref="Capabilities"/> containing the content of the specified
 /// <see cref="XmlReader"/>.
 /// </returns>
 public static Capabilities Load(XmlReader reader)
 {
     return(PrintSchemaReader.ReadCapabilities(reader));
 }