/// <summary> /// Deserialize the {@code CertificateRevokedException} instance. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private void readObject(java.io.ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException private void ReadObject(ObjectInputStream ois) { // Read in the non-transient fields // (revocationDate, reason, authority) ois.DefaultReadObject(); // Defensively copy the revocation date RevocationDate_Renamed = new DateTime(RevocationDate_Renamed.Ticks); // Read in the size (number of mappings) of the extensions map // and create the extensions map int size = ois.ReadInt(); if (size == 0) { Extensions_Renamed = Collections.EmptyMap(); } else { Extensions_Renamed = new Dictionary <String, Extension>(size); } // Read in the extensions and put the mappings in the extensions map for (int i = 0; i < size; i++) { String oid = (String)ois.ReadObject(); bool critical = ois.ReadBoolean(); int length = ois.ReadInt(); sbyte[] extVal = new sbyte[length]; ois.ReadFully(extVal); Extension ext = sun.security.x509.Extension.newExtension(new ObjectIdentifier(oid), critical, extVal); Extensions_Renamed[oid] = ext; } }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream @in) { string name = (string)@in.ReadObject(); string value = (string)@in.ReadObject(); clientCookie = new BasicClientCookie(name, value); clientCookie.SetComment((string)@in.ReadObject()); clientCookie.SetDomain((string)@in.ReadObject()); clientCookie.SetExpiryDate((DateTime)@in.ReadObject()); clientCookie.SetPath((string)@in.ReadObject()); clientCookie.SetVersion(@in.ReadInt()); clientCookie.SetSecure(@in.ReadBoolean()); }
/// <exception cref="System.IO.IOException"/> /// <exception cref="System.InvalidCastException"/> /// <exception cref="System.TypeLoadException"/> public NERClassifierCombiner(ObjectInputStream ois, Properties props) : base(ois, props) { // constructor which builds an NERClassifierCombiner from an ObjectInputStream // read the useSUTime from disk bool diskUseSUTime = ois.ReadBoolean(); if (props.GetProperty("ner.useSUTime") != null) { this.useSUTime = bool.Parse(props.GetProperty("ner.useSUTime")); } else { this.useSUTime = diskUseSUTime; } // read the applyNumericClassifiers from disk bool diskApplyNumericClassifiers = ois.ReadBoolean(); if (props.GetProperty("ner.applyNumericClassifiers") != null) { this.applyNumericClassifiers = bool.Parse(props.GetProperty("ner.applyNumericClassifiers")); } else { this.applyNumericClassifiers = diskApplyNumericClassifiers; } this.nerLanguage = NerLanguageDefault; // build the nsc, note that initProps should be set by ClassifierCombiner this.nsc = new NumberSequenceClassifier(new Properties(), useSUTime, props); if (PropertiesUtils.GetBool(props, NERClassifierCombiner.ApplyGazetteProperty, NERClassifierCombiner.ApplyGazetteDefault)) { this.gazetteMapping = ReadRegexnerGazette(DefaultPaths.DefaultNerGazetteMapping); } else { this.gazetteMapping = Java.Util.Collections.EmptyMap(); } }