Package davaguine.jmac.tools

Examples of davaguine.jmac.tools.ByteArrayReader.readUnsignedByte()


            tag.Title = reader.readString(30, "US-ASCII");
            tag.Artist = reader.readString(30, "US-ASCII");
            tag.Album = reader.readString(30, "US-ASCII");
            tag.Year = reader.readString(4, "US-ASCII");
            tag.Comment = reader.readString(29, "US-ASCII");
            tag.Track = reader.readUnsignedByte();
            tag.Genre = reader.readUnsignedByte();
            return tag.Header.equals("TAG") ? tag : null;
        } catch (EOFException e) {
            return null;
        }
View Full Code Here


            tag.Artist = reader.readString(30, "US-ASCII");
            tag.Album = reader.readString(30, "US-ASCII");
            tag.Year = reader.readString(4, "US-ASCII");
            tag.Comment = reader.readString(29, "US-ASCII");
            tag.Track = reader.readUnsignedByte();
            tag.Genre = reader.readUnsignedByte();
            return tag.Header.equals("TAG") ? tag : null;
        } catch (EOFException e) {
            return null;
        }
    }
View Full Code Here

            tag.Title = reader.readString(30, defaultEncoding);
            tag.Artist = reader.readString(30, defaultEncoding);
            tag.Album = reader.readString(30, defaultEncoding);
            tag.Year = reader.readString(4, defaultEncoding);
            tag.Comment = reader.readString(29, defaultEncoding);
            tag.Track = reader.readUnsignedByte();
            tag.Genre = reader.readUnsignedByte();
            return tag.Header.equals("TAG") ? tag : null;
        } catch (EOFException e) {
            return null;
        }
View Full Code Here

            tag.Artist = reader.readString(30, defaultEncoding);
            tag.Album = reader.readString(30, defaultEncoding);
            tag.Year = reader.readString(4, defaultEncoding);
            tag.Comment = reader.readString(29, defaultEncoding);
            tag.Track = reader.readUnsignedByte();
            tag.Genre = reader.readUnsignedByte();
            return tag.Header.equals("TAG") ? tag : null;
        } catch (EOFException e) {
            return null;
        }
    }
View Full Code Here

            final String tag = reader.readString(3, "US-ASCII");
            if (tag.equals("ID3")) {
                // why is it so hard to figure the lenght of an ID3v2 tag ?!?
                reader.readByte();
                reader.readByte();
                int byte5 = reader.readUnsignedByte();

                int nSyncSafeLength;
                nSyncSafeLength = (reader.readUnsignedByte() & 127) << 21;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 14;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 7;
View Full Code Here

                reader.readByte();
                reader.readByte();
                int byte5 = reader.readUnsignedByte();

                int nSyncSafeLength;
                nSyncSafeLength = (reader.readUnsignedByte() & 127) << 21;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 14;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 7;
                nSyncSafeLength += (reader.readUnsignedByte() & 127);

                boolean bHasTagFooter = false;
View Full Code Here

                reader.readByte();
                int byte5 = reader.readUnsignedByte();

                int nSyncSafeLength;
                nSyncSafeLength = (reader.readUnsignedByte() & 127) << 21;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 14;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 7;
                nSyncSafeLength += (reader.readUnsignedByte() & 127);

                boolean bHasTagFooter = false;
View Full Code Here

                int byte5 = reader.readUnsignedByte();

                int nSyncSafeLength;
                nSyncSafeLength = (reader.readUnsignedByte() & 127) << 21;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 14;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 7;
                nSyncSafeLength += (reader.readUnsignedByte() & 127);

                boolean bHasTagFooter = false;

                if ((byte5 & 16) > 0) {
View Full Code Here

                int nSyncSafeLength;
                nSyncSafeLength = (reader.readUnsignedByte() & 127) << 21;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 14;
                nSyncSafeLength += (reader.readUnsignedByte() & 127) << 7;
                nSyncSafeLength += (reader.readUnsignedByte() & 127);

                boolean bHasTagFooter = false;

                if ((byte5 & 16) > 0) {
                    bHasTagFooter = true;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.