public ID3v2QuickInfo(ID3v2 id3) { if (id3 == null) { throw new ArgumentNullException("id3"); } _id3 = id3; }
private static ID3v2 FromStream(Stream stream, bool readData) { ID3v2 id3v2 = new ID3v2(stream); if (id3v2.ReadData(stream, readData)) { return(id3v2); } return(null); }
public static Frame FromStream(Stream stream, ID3v2 tag) { bool result = false; FrameHeader header = new FrameHeader(stream, tag.Header.Version); long streamPosition = stream.Position + header.FrameSize; var frame = FrameFactory.Instance.TryGetFrame(header, tag.Header.Version, stream, out result); stream.Position = streamPosition; return(frame); }
public static ID3v2 FromStream(Stream stream) { try { ID3v2 id3v2 = new ID3v2(stream); if (id3v2.ReadData(stream, true)) { return(id3v2); } } catch (Exception) { return(null); } return(null); }