code: public static final Duration getDuration(InputStream is) throws IOException
     {
        double durationInSeconds = getInt(is);
        durationInSeconds /= (60 * 60);
        return Duration.getInstance(durationInSeconds, TimeUnit.HOURS);
     }
docs: Retrieve a Synchro Duration from an input stream.
  
  @param is input stream
  @return Duration instance