code: public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
     {
        byte[] buf = new byte[in.readInt()];
        in.readFully(buf);
        String namespace = new String(buf, Constants.DEFAULT_ENCODING);
        namespaceIsWildcard = namespace.equals("*");
  
        buf = new byte[in.readInt()];
        in.readFully(buf);
        String localName = new String(buf, Constants.DEFAULT_ENCODING);
        localNameHasWildcard = localName.indexOf('*') != -1;
  
        int index = in.readInt();
        entry = new PatternQPathEntry(namespace, localName, index);
     }
docs: {@inheritDoc}