Are you having trouble loading the header or parsing it? if it loads, use this code:
URL url = new URL(fileUrl);
InputStream dis = url.openStream();
byte[] header = new byte[HEADER_SIZE];
dis.read(header);
You can wrap an InputStream with a DataInputStream if you want to read int, not bytes.
After that, just look at the getInfo method from PHP-FLV Info or read the spec.