log.warn("Illegal edition - BUFR message at pos " + start + " header= " + cleanup(header)); return null; log.warn("Edition "+ is.getBufrEdition()+" is not supported - BUFR message at pos " + start + " header= " +cleanup(header)); return null; for (int i = 0; i < 3; i++) { if (raf.read() != 55) { log.warn("Missing End of BUFR message at pos=" + ending + " header= " + cleanup(header)); return null; raf.seek(dataPos + dataLength-1); // see if byte before is a '7' if (raf.read() != 55) { log.warn("Missing End of BUFR message at pos=" +ending+ " header= " + cleanup(header)+" edition= "+is.getBufrEdition()); return null; } else { log.warn("End of BUFR message off-by-one at pos= " +ending+ " header= " + cleanup(header)+" edition= "+is.getBufrEdition()); lastPos--; m.setHeader( cleanup(header)); m.setStartPos( start);
log.warn("Illegal edition - BUFR message at pos " + start + " header= " + cleanup(header)); return null; log.warn("Edition "+ is.getBufrEdition()+" is not supported - BUFR message at pos " + start + " header= " +cleanup(header)); return null; for (int i = 0; i < 3; i++) { if (raf.read() != 55) { log.warn("Missing End of BUFR message at pos= {} header= {} file= {}", ending, cleanup(header), raf.getLocation()); return null; raf.seek(dataPos + dataLength-1); // see if byte before is a '7' if (raf.read() != 55) { log.warn("Missing End of BUFR message at pos= {} header= {} edition=() file= {}", ending, cleanup(header), is.getBufrEdition(), raf.getLocation()); return null; } else { log.info("End of BUFR message off-by-one at pos= {} header= {} edition=() file= {}", ending, cleanup(header), is.getBufrEdition(), raf.getLocation()); lastPos--; m.setHeader( cleanup(header)); m.setStartPos( start);