Example usage for javax.xml.stream Location Location

List of usage examples for javax.xml.stream Location Location

Introduction

In this page you can find the example usage for javax.xml.stream Location Location.

Prototype

Location

Source Link

Usage

From source file:org.apache.axis2.json.gson.GsonXMLStreamReader.java

public Location getLocation() {
    return new Location() { // Location is unKnown

        public int getLineNumber() {
            return -1;
        }//from   w w w. ja  va 2 s. co  m

        public int getColumnNumber() {
            return -1;
        }

        public int getCharacterOffset() {
            return 0; //To change body of implemented methods use File | Settings | File Templates.
        }

        public String getPublicId() {
            return null; //To change body of implemented methods use File | Settings | File Templates.
        }

        public String getSystemId() {
            return null; //To change body of implemented methods use File | Settings | File Templates.
        }
    };
}