src/share/jaxws_classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetCodec.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetCodec.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetCodec.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -40,7 +40,6 @@
    1.11  
    1.12  import javax.xml.stream.XMLStreamException;
    1.13  import javax.xml.stream.XMLStreamWriter;
    1.14 -import javax.xml.stream.XMLStreamReader;
    1.15  import javax.xml.ws.WebServiceException;
    1.16  import java.io.OutputStream;
    1.17  import java.io.InputStream;
    1.18 @@ -110,7 +109,7 @@
    1.19      public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    1.20          /* Implements similar logic as the XMLMessage.create(String, InputStream).
    1.21           * But it's faster, as we know the InputStream has FastInfoset content*/
    1.22 -        Message message = null;
    1.23 +        Message message;
    1.24          in = hasSomeData(in);
    1.25          if (in != null) {
    1.26              message = Messages.createUsingPayload(new FastInfosetSource(in),
    1.27 @@ -135,15 +134,6 @@
    1.28          }
    1.29      }
    1.30  
    1.31 -    private XMLStreamReader getXMLStreamReader(InputStream in) {
    1.32 -        if (_parser != null) {
    1.33 -            _parser.setInputStream(in);
    1.34 -            return _parser;
    1.35 -        } else {
    1.36 -            return _parser = createNewStreamReader(in, _retainState);
    1.37 -        }
    1.38 -    }
    1.39 -
    1.40      /**
    1.41       * Creates a new {@link FastInfosetCodec} instance.
    1.42       *

mercurial