Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: static ChronoLocalDateTime<?> readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
        internal static ChronoLocalDateTime <?> ReadExternal(ObjectInput @in)
        {
            ChronoLocalDate date = (ChronoLocalDate)@in.ReadObject();
            LocalTime       time = (LocalTime)@in.ReadObject();

            return(date.atTime(time));
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: static ChronoZonedDateTime<?> readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
		internal static ChronoZonedDateTime<?> ReadExternal(ObjectInput @in)
		{
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
//ORIGINAL LINE: ChronoLocalDateTime<?> dateTime = (ChronoLocalDateTime<?>) in.readObject();
			ChronoLocalDateTime<?> dateTime = (ChronoLocalDateTime<?>) @in.ReadObject();
			ZoneOffset offset = (ZoneOffset) @in.ReadObject();
			ZoneId zone = (ZoneId) @in.ReadObject();
			return dateTime.AtZone(offset).WithZoneSameLocal(zone);
			// TODO: ZDT uses ofLenient()
		}
Exemplo n.º 3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: static HijrahDate readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException
        internal static HijrahDate ReadExternal(ObjectInput @in)
        {
            HijrahChronology ChronoLocalDate_Fields.Chrono = (HijrahChronology)@in.ReadObject();
            int year       = @in.ReadInt();
            int month      = @in.ReadByte();
            int dayOfMonth = @in.ReadByte();

            return(ChronoLocalDate_Fields.Chrono.Date(year, month, dayOfMonth));
        }
Exemplo n.º 4
0
 public Object ReadObject()
 {
     return(dataInput.ReadObject());
 }