class Parse extends PGMessage {

    public static Parse loadFromPacket(byte[] packet) {
        PGProto proto = new PGProto(packet, 5);
        Parse parse = new Parse();
        parse.setStatement(proto.readNullStr());
        parse.setQuery(proto.readNullStr());
        int paramOidCount = proto.readInt16();
        int[] paramOids = new int[paramOidCount];
        for (int i = 0; i < paramOidCount; i++) {
            paramOids[i] = proto.readInt32();
        }
        parse.setParamOids(paramOids);
        return parse;
    }

}