/** * Parse the processing/history information from the header. * * @throws IOException if any problems reading the file (or validating the file). */ private void handleProcessingInformation() throws IOException { suborbitHistoryAtt = new Attribute( this.suborbitHistoryAttName, (String) headerInfo.get( HeaderInfoTitle.SUBORBIT_HISTORY.toString() ) ); processingSystemAtt = new Attribute( this.processingSystemAttName, (String) headerInfo.get( HeaderInfoTitle.PROCESSING_SYSTEM.toString() ) ); String processingDateString = (String) headerInfo.get( HeaderInfoTitle.PROCESSING_DATE.toString() ); try { processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString ); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() ); } processingDateAtt = new Attribute( this.processingDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) ); }
/** * Parse the processing/history information from the header. * * @throws IOException if any problems reading the file (or validating the file). */ private void handleProcessingInformation() throws IOException { suborbitHistoryAtt = new Attribute(this.suborbitHistoryAttName, headerInfo.get(HeaderInfoTitle.SUBORBIT_HISTORY.toString())); processingSystemAtt = new Attribute(this.processingSystemAttName, headerInfo.get(HeaderInfoTitle.PROCESSING_SYSTEM.toString())); String processingDateString = headerInfo.get(HeaderInfoTitle.PROCESSING_DATE.toString()); try { processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString ); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() ); } processingDateAtt = new Attribute( this.processingDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) ); }
/** * Parse the processing/history information from the header. * * @throws IOException if any problems reading the file (or validating the file). */ private void handleProcessingInformation() throws IOException { suborbitHistoryAtt = new Attribute( this.suborbitHistoryAttName, (String) headerInfo.get( HeaderInfoTitle.SUBORBIT_HISTORY.toString() ) ); processingSystemAtt = new Attribute( this.processingSystemAttName, (String) headerInfo.get( HeaderInfoTitle.PROCESSING_SYSTEM.toString() ) ); String processingDateString = (String) headerInfo.get( HeaderInfoTitle.PROCESSING_DATE.toString() ); try { processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString ); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() ); } processingDateAtt = new Attribute( this.processingDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) ); }
+ "T" + time.substring( 0, time.indexOf( '.')+4) + "Z"; try { this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC); + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z"; try { this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
+ "T" + time.substring( 0, time.indexOf( '.')+4) + "Z"; try { this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC); + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z"; try { this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
+ "T" + time.substring( 0, time.indexOf( '.')+4) + "Z"; try { this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC); + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z"; try { this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
this.startDateString = this.header.getStartDateAtt().getStringValue(); try { this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString); } catch (ParseException e) { throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
this.startDateString = this.header.getStartDateAtt().getStringValue(); try { this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString); } catch (ParseException e) { throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
this.startDateString = this.header.getStartDateAtt().getStringValue(); try { this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString); } catch (ParseException e) { throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
testDate = DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString(targetDate1AltDateTimeString); } catch (ParseException e) { assertTrue("Unexpected ParseException while parsing date/time string <" + targetDate1AltDateTimeString + ">: " + e.getMessage(),