Skip to content

Commit 0cc7699

Browse files
Merge pull request opentripplanner#7353 from entur/parse_siri_xml_as_input_stream
Use zero-copy InputStream for SIRI XML parsing in PubSub updater
2 parents 695a8a9 + e22f1f4 commit 0cc7699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/src/main/java/org/opentripplanner/updater/trip/siri/updater/google/GooglePubsubEstimatedTimetableSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private void deleteSubscription() {
251251
private Optional<ServiceDelivery> serviceDelivery(ByteString data) {
252252
Siri siri;
253253
try {
254-
siri = SiriXml.parseXml(data.toStringUtf8());
254+
siri = SiriXml.parseXml(data.newInput());
255255
} catch (XMLStreamException | JAXBException e) {
256256
throw new RuntimeException(e);
257257
}

0 commit comments

Comments
 (0)