C# 클래스 iTextSharp.xmp.XmpMetaFactory

Creates XMPMeta-instances from an InputStream @since 30.01.2006
파일 보기 프로젝트 열기: nonorganic/dssnet

공개 메소드들

메소드 설명
Create ( ) : IXmpMeta
Parse ( Stream @in ) : IXmpMeta

Parsing with default options.

Parse ( Stream @in, ParseOptions options ) : IXmpMeta

These functions support parsing serialized RDF into an XMP object, and serailizing an XMP object into RDF. The input for parsing may be any valid Unicode encoding. ISO Latin-1 is also recognized, but its use is strongly discouraged. Serialization is always as UTF-8.

parseFromBuffer() parses RDF from an InputStream. The encoding is recognized automatically.

ParseFromBuffer ( byte buffer ) : IXmpMeta

Parsing with default options.

ParseFromBuffer ( byte buffer, ParseOptions options ) : IXmpMeta

Creates an XMPMeta-object from a byte-buffer.

ParseFromString ( string packet ) : IXmpMeta

Parsing with default options.

ParseFromString ( string packet, ParseOptions options ) : IXmpMeta

Creates an XMPMeta-object from a string.

Reset ( ) : void

Resets the _schema registry to its original state (creates a new one). Be careful this might break all existing XMPMeta-objects and should be used only for testing purpurses.

Serialize ( IXmpMeta xmp, Stream @out ) : void

Serializes an XMPMeta-object as RDF into an OutputStream with default options.

Serialize ( IXmpMeta xmp, Stream @out, SerializeOptions options ) : void

Serializes an XMPMeta-object as RDF into an OutputStream.

SerializeToBuffer ( IXmpMeta xmp, SerializeOptions options ) : byte[]

Serializes an XMPMeta-object as RDF into a byte buffer.

SerializeToString ( IXmpMeta xmp, SerializeOptions options ) : string

Serializes an XMPMeta-object as RDF into a string. Note: Encoding is ignored when serializing to a string.

비공개 메소드들

메소드 설명
AssertImplementation ( IXmpMeta xmp ) : void
GetVersionInfo ( ) : IXmpVersionInfo

메소드 상세

Create() 공개 정적인 메소드

public static Create ( ) : IXmpMeta
리턴 IXmpMeta

Parse() 공개 정적인 메소드

Parsing with default options.
If the file is not well-formed XML or if the parsing fails.
public static Parse ( Stream @in ) : IXmpMeta
@in Stream
리턴 IXmpMeta

Parse() 공개 정적인 메소드

These functions support parsing serialized RDF into an XMP object, and serailizing an XMP object into RDF. The input for parsing may be any valid Unicode encoding. ISO Latin-1 is also recognized, but its use is strongly discouraged. Serialization is always as UTF-8.

parseFromBuffer() parses RDF from an InputStream. The encoding is recognized automatically.

If the file is not well-formed XML or if the parsing fails.
public static Parse ( Stream @in, ParseOptions options ) : IXmpMeta
@in Stream
options iTextSharp.xmp.options.ParseOptions Options controlling the parsing.
/// The available options are: ///
    ///
  • XMP_REQUIRE_XMPMETA - The <x:xmpmeta> XML element is required around /// <rdf:RDF>. ///
  • XMP_STRICT_ALIASING - Do not reconcile alias differences, throw an exception. ///
/// Note:The XMP_STRICT_ALIASING option is not yet implemented.
리턴 IXmpMeta

ParseFromBuffer() 공개 정적인 메소드

Parsing with default options.
If the file is not well-formed XML or if the parsing fails.
public static ParseFromBuffer ( byte buffer ) : IXmpMeta
buffer byte a String contain an XMP-file.
리턴 IXmpMeta

ParseFromBuffer() 공개 정적인 메소드

Creates an XMPMeta-object from a byte-buffer.
If the file is not well-formed XML or if the parsing fails.
public static ParseFromBuffer ( byte buffer, ParseOptions options ) : IXmpMeta
buffer byte a String contain an XMP-file.
options iTextSharp.xmp.options.ParseOptions Options controlling the parsing.
리턴 IXmpMeta

ParseFromString() 공개 정적인 메소드

Parsing with default options.
If the file is not well-formed XML or if the parsing fails.
public static ParseFromString ( string packet ) : IXmpMeta
packet string a String contain an XMP-file.
리턴 IXmpMeta

ParseFromString() 공개 정적인 메소드

Creates an XMPMeta-object from a string.
If the file is not well-formed XML or if the parsing fails.
public static ParseFromString ( string packet, ParseOptions options ) : IXmpMeta
packet string a String contain an XMP-file.
options iTextSharp.xmp.options.ParseOptions Options controlling the parsing.
리턴 IXmpMeta

Reset() 공개 정적인 메소드

Resets the _schema registry to its original state (creates a new one). Be careful this might break all existing XMPMeta-objects and should be used only for testing purpurses.
public static Reset ( ) : void
리턴 void

Serialize() 공개 정적인 메소드

Serializes an XMPMeta-object as RDF into an OutputStream with default options.
on serializsation errors.
public static Serialize ( IXmpMeta xmp, Stream @out ) : void
xmp IXmpMeta a metadata object
@out Stream
리턴 void

Serialize() 공개 정적인 메소드

Serializes an XMPMeta-object as RDF into an OutputStream.
on serializsation errors.
public static Serialize ( IXmpMeta xmp, Stream @out, SerializeOptions options ) : void
xmp IXmpMeta a metadata object
@out Stream
options iTextSharp.xmp.options.SerializeOptions Options to control the serialization (see ).
리턴 void

SerializeToBuffer() 공개 정적인 메소드

Serializes an XMPMeta-object as RDF into a byte buffer.
on serializsation errors.
public static SerializeToBuffer ( IXmpMeta xmp, SerializeOptions options ) : byte[]
xmp IXmpMeta a metadata object
options iTextSharp.xmp.options.SerializeOptions Options to control the serialization (see ).
리턴 byte[]

SerializeToString() 공개 정적인 메소드

Serializes an XMPMeta-object as RDF into a string. Note: Encoding is ignored when serializing to a string.
on serializsation errors.
public static SerializeToString ( IXmpMeta xmp, SerializeOptions options ) : string
xmp IXmpMeta a metadata object
options iTextSharp.xmp.options.SerializeOptions Options to control the serialization (see ).
리턴 string