Examples of padNumZero()


Examples of nav.util.string.StringUtil.padNumZero()

        // Repeat Indicator (6-8)
        super.setRepeatIndicator(Integer.parseInt(data.substring(6, 8), 2));

        // MMSI (9-38)
        StringUtil su = new StringUtil();
        super.setMmsi(su.padNumZero(Integer.parseInt(data.substring(8, 38), 2), 9));

        // UTC Year ()38-52
        year = Integer.parseInt(data.substring(38, 52), 2);

        // UTC Month (52-56)
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

        // Set the time stamp based on above number...
        Calendar cal = Calendar.getInstance();
        cal.set(year, month, day, hour, minute, second);
        super.setTimestamp(cal.getTimeInMillis());
        super.setTimestampStr(su.padNumZero(hour, 2) + ":"
                + su.padNumZero(minute, 2) + ":"
                + su.padNumZero(second, 2));

        // Position Accuracy (78-79)
        super.decodePosAccuracy(data.substring(78, 79));
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

        // Set the time stamp based on above number...
        Calendar cal = Calendar.getInstance();
        cal.set(year, month, day, hour, minute, second);
        super.setTimestamp(cal.getTimeInMillis());
        super.setTimestampStr(su.padNumZero(hour, 2) + ":"
                + su.padNumZero(minute, 2) + ":"
                + su.padNumZero(second, 2));

        // Position Accuracy (78-79)
        super.decodePosAccuracy(data.substring(78, 79));
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

        Calendar cal = Calendar.getInstance();
        cal.set(year, month, day, hour, minute, second);
        super.setTimestamp(cal.getTimeInMillis());
        super.setTimestampStr(su.padNumZero(hour, 2) + ":"
                + su.padNumZero(minute, 2) + ":"
                + su.padNumZero(second, 2));

        // Position Accuracy (78-79)
        super.decodePosAccuracy(data.substring(78, 79));

        // Longitude (79-107) //Latitude (107-134)
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

  input = input.substring(5);
  int hour = Integer.parseInt(input.substring(0,5),2);
  input = input.substring(5);
  int min = Integer.parseInt(input.substring(0,6),2);
  StringUtil su = new StringUtil();
  eta = su.padNumZero(hour,2) + ":" + su.padNumZero(min, 2) + " on " + su.padNumZero(day,2) + " " + strMonth;
    }

    /**
     * Returns the vessel's destination.
     *
 
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

  input = input.substring(5);
  int hour = Integer.parseInt(input.substring(0,5),2);
  input = input.substring(5);
  int min = Integer.parseInt(input.substring(0,6),2);
  StringUtil su = new StringUtil();
  eta = su.padNumZero(hour,2) + ":" + su.padNumZero(min, 2) + " on " + su.padNumZero(day,2) + " " + strMonth;
    }

    /**
     * Returns the vessel's destination.
     *
 
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

  input = input.substring(5);
  int hour = Integer.parseInt(input.substring(0,5),2);
  input = input.substring(5);
  int min = Integer.parseInt(input.substring(0,6),2);
  StringUtil su = new StringUtil();
  eta = su.padNumZero(hour,2) + ":" + su.padNumZero(min, 2) + " on " + su.padNumZero(day,2) + " " + strMonth;
    }

    /**
     * Returns the vessel's destination.
     *
 
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

  // Repeat Indicator (7-8)
  super.setRepeatIndicator(Integer.parseInt(data.substring(6,8),2));

  // MMSI (9-38)
  StringUtil su = new StringUtil();
  super.setMmsi(su.padNumZero(Integer.parseInt(data.substring(8,38), 2),9));

  // Altitude (38-50)
  decodeAlt(data.substring(42,50));

  // Speed Over Ground (50-60)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.