boolean isShout = false;
int toRead = 4;
byte[] head = new byte[toRead];
conn.setRequestProperty("Icy-Metadata", "1");
BufferedInputStream bInputStream = new BufferedInputStream(conn.getInputStream());
bInputStream.mark(toRead);
int read = bInputStream.read(head, 0, toRead);
if ((read > 2) && (((head[0] == 'I') | (head[0] == 'i')) && ((head[1] == 'C') | (head[1] == 'c')) && ((head[2] == 'Y') | (head[2] == 'y')))) isShout = true;
bInputStream.reset();
InputStream inputStream = null;
// Is is a shoutcast server ?