예제 #1
0
파일: Ticket.cs 프로젝트: kei10in/KipSharp
 /// <summary>
 /// Creates a new Ticket from a <see cref="System.IO.TextReader"/>.
 /// </summary>
 /// <param name="input">
 /// The <see cref="System.IO.TextReader"/> that contains the PrintTicket document.
 /// </param>
 /// <returns>
 /// A <see cref="Ticket"/> containing the content of the specified <see cref="System.IO.TextReader"/>.
 /// </returns>
 public static Ticket Load(System.IO.TextReader input)
 {
     using (var reader = XmlReader.Create(input))
     {
         return(PrintSchemaReader.ReadTicket(reader));
     }
 }
예제 #2
0
파일: Ticket.cs 프로젝트: kei10in/KipSharp
 /// <summary>
 /// Creates a new Ticket 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="Ticket"/> populated from the data contained in the stream.
 /// </returns>
 public static Ticket Load(System.IO.Stream stream)
 {
     using (var reader = XmlReader.Create(stream))
     {
         return(PrintSchemaReader.ReadTicket(reader));
     }
 }
예제 #3
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));
     }
 }
예제 #4
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));
     }
 }
예제 #5
0
파일: Ticket.cs 프로젝트: kei10in/KipSharp
 /// <summary>
 /// Creates a new Ticket from the <see cref="XmlReader"/>.
 /// </summary>
 /// <param name="reader">
 /// The XmlReader that contains the PrintTicket document.
 /// </param>
 /// <returns>
 /// A <see cref="Ticket"/> containing the content of the specified <see cref="XmlReader"/>.
 /// </returns>
 public static Ticket Load(XmlReader reader)
 {
     return(PrintSchemaReader.ReadTicket(reader));
 }
예제 #6
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));
 }