|
1 | 1 | using System.Collections; |
2 | 2 | using System.IO; |
3 | | -using Org.BouncyCastle.Utilities.Collections; |
4 | 3 | using iTextSharp.text.xml.simpleparser; |
5 | 4 | using iTextSharp.text.xml.xmp; |
6 | 5 | using iTextSharp.xmp.options; |
| 6 | +using System.Collections.Generic; |
7 | 7 |
|
8 | 8 | //Copyright (c) 2006, Adobe Systems Incorporated |
9 | 9 | //All rights reserved. |
@@ -71,8 +71,8 @@ public class XmpSerializerRdf { |
71 | 71 |
|
72 | 72 | /// <summary> |
73 | 73 | /// a set of all rdf attribute qualifier </summary> |
74 | | - internal static readonly ISet RDF_ATTR_QUALIFIER = |
75 | | - new HashSet(new string[] {XmpConst.XML_LANG, "rdf:resource", "rdf:ID", "rdf:bagID", "rdf:nodeID"}); |
| 74 | + internal static readonly HashSet<string> RDF_ATTR_QUALIFIER = |
| 75 | + new HashSet<string> { XmpConst.XML_LANG, "rdf:resource", "rdf:ID", "rdf:bagID", "rdf:nodeID" }; |
76 | 76 |
|
77 | 77 | /// <summary> |
78 | 78 | /// the stored serialization options </summary> |
@@ -339,7 +339,7 @@ private void SerializeCompactRdfSchemas(int level) { |
339 | 339 | WriteTreeName(); |
340 | 340 |
|
341 | 341 | // Write all necessary xmlns attributes. |
342 | | - ISet usedPrefixes = new HashSet(); |
| 342 | + var usedPrefixes = new HashSet<string>(); |
343 | 343 | usedPrefixes.Add("xml"); |
344 | 344 | usedPrefixes.Add("rdf"); |
345 | 345 |
|
@@ -739,7 +739,7 @@ private void SerializeCanonicalRdfSchema(XmpNode schemaNode, int level) { |
739 | 739 | /// <param name="usedPrefixes"> a set containing currently used prefixes </param> |
740 | 740 | /// <param name="indent"> the current indent level </param> |
741 | 741 | /// <exception cref="IOException"> Forwards all writer exceptions. </exception> |
742 | | - private void DeclareUsedNamespaces(XmpNode node, ISet usedPrefixes, int indent) { |
| 742 | + private void DeclareUsedNamespaces(XmpNode node, HashSet<string> usedPrefixes, int indent) { |
743 | 743 | if (node.Options.SchemaNode) { |
744 | 744 | // The schema node name is the URI, the value is the prefix. |
745 | 745 | string prefix = node.Value.Substring(0, node.Value.Length - 1); |
@@ -778,7 +778,7 @@ private void DeclareUsedNamespaces(XmpNode node, ISet usedPrefixes, int indent) |
778 | 778 | /// <param name="usedPrefixes"> a set containing currently used prefixes </param> |
779 | 779 | /// <param name="indent"> the current indent level </param> |
780 | 780 | /// <exception cref="IOException"> Forwards all writer exceptions. </exception> |
781 | | - private void DeclareNamespace(string prefix, string @namespace, ISet usedPrefixes, int indent) { |
| 781 | + private void DeclareNamespace(string prefix, string @namespace, HashSet<string> usedPrefixes, int indent) { |
782 | 782 | if (@namespace == null) { |
783 | 783 | // prefix contains qname, extract prefix and lookup namespace with prefix |
784 | 784 | QName qname = new QName(prefix); |
@@ -817,7 +817,7 @@ private void StartOuterRdfDescription(XmpNode schemaNode, int level) { |
817 | 817 | Write(RDF_SCHEMA_START); |
818 | 818 | WriteTreeName(); |
819 | 819 |
|
820 | | - ISet usedPrefixes = new HashSet(); |
| 820 | + var usedPrefixes = new HashSet<string>(); |
821 | 821 | usedPrefixes.Add("xml"); |
822 | 822 | usedPrefixes.Add("rdf"); |
823 | 823 |
|
|
0 commit comments