Class: TagLib::ID3v1::Tag
Overview
The main class in the ID3v1 implementation. .
This is an implementation of the ID3v1 format. ID3v1 is both the simplist and most common of tag formats but is rather limited. Because of its pervasiveness and the way that applications have been written around the fields that it provides, the generic TagLib::Tag API is a mirror of what is provided by ID3v1.ID3v1 tags should generally only contain Latin1 information. However because many applications do not follow this rule there is now support for overriding the ID3v1 string handling using the ID3v1::StringHandler class. Please see the documentation for that class for more information.StringHandler Most fields are truncated to a maximum of 28-30 bytes. The truncation happens automatically when the tag is rendered.
Instance Method Summary collapse
-
#album ⇒ Object
Returns the album name; if no album name is present in the tag String::null will be returned.
- #album= ⇒ Object
-
#artist ⇒ Object
Returns the artist name; if no artist name is present in the tag String::null will be returned.
- #artist= ⇒ Object
-
#comment ⇒ Object
Returns the track comment; if no comment is present in the tag String::null will be returned.
- #comment= ⇒ Object
- #empty? ⇒ Boolean
-
#genre ⇒ Object
Returns the genre name; if no genre is present in the tag String::null will be returned.
- #genre= ⇒ Object
- #isEmpty ⇒ Object
-
#render ⇒ Object
Renders the in memory values to a ByteVector suitable for writing to the file.
-
#setAlbum(s) ⇒ Object
Sets the album to s.
-
#setArtist(s) ⇒ Object
Sets the artist to s.
-
#setComment(s) ⇒ Object
Sets the comment to s.
-
#setGenre(s) ⇒ Object
Sets the genre to s.
-
#setTitle(s) ⇒ Object
Sets the title to s.
-
#setTrack(i) ⇒ Object
Sets the track to i.
-
#setYear(i) ⇒ Object
Sets the year to i.
-
#title ⇒ Object
Returns the track name; if no track name is present in the tag String::null will be returned.
- #title= ⇒ Object
-
#track ⇒ Object
Returns the track number; if there is no track number set, this will return 0.
- #track= ⇒ Object
-
#year ⇒ Object
Returns the year; if there is no year set, this will return 0.
- #year= ⇒ Object
Instance Method Details
#album ⇒ Object
Returns the album name; if no album name is present in the tag String::null will be returned.
1261 1262 |
# File 'lib/TagLib_doc.rb', line 1261 def album() end |
#album= ⇒ Object
1268 1269 |
# File 'lib/TagLib_doc.rb', line 1268 def album=() end |
#artist ⇒ Object
Returns the artist name; if no artist name is present in the tag String::null will be returned.
1233 1234 |
# File 'lib/TagLib_doc.rb', line 1233 def artist() end |
#artist= ⇒ Object
1237 1238 |
# File 'lib/TagLib_doc.rb', line 1237 def artist=() end |
#comment ⇒ Object
Returns the track comment; if no comment is present in the tag String::null will be returned.
1247 1248 |
# File 'lib/TagLib_doc.rb', line 1247 def comment() end |
#comment= ⇒ Object
1254 1255 |
# File 'lib/TagLib_doc.rb', line 1254 def comment=() end |
#empty? ⇒ Boolean
1256 1257 |
# File 'lib/TagLib_doc.rb', line 1256 def empty?() end |
#genre ⇒ Object
Returns the genre name; if no genre is present in the tag String::null will be returned.
1280 1281 |
# File 'lib/TagLib_doc.rb', line 1280 def genre() end |
#genre= ⇒ Object
1282 1283 |
# File 'lib/TagLib_doc.rb', line 1282 def genre=() end |
#isEmpty ⇒ Object
1275 1276 |
# File 'lib/TagLib_doc.rb', line 1275 def isEmpty() end |
#render ⇒ Object
Renders the in memory values to a ByteVector suitable for writing to the file.
1266 1267 |
# File 'lib/TagLib_doc.rb', line 1266 def render() end |
#setAlbum(s) ⇒ Object
Sets the album to s. If s is String::null then this value will be cleared.
1273 1274 |
# File 'lib/TagLib_doc.rb', line 1273 def setAlbum(s) end |
#setArtist(s) ⇒ Object
Sets the artist to s. If s is String::null then this value will be cleared.
1242 1243 |
# File 'lib/TagLib_doc.rb', line 1242 def setArtist(s) end |
#setComment(s) ⇒ Object
Sets the comment to s. If s is String::null then this value will be cleared.
1287 1288 |
# File 'lib/TagLib_doc.rb', line 1287 def setComment(s) end |
#setGenre(s) ⇒ Object
Sets the genre to s. If s is String::null then this value will be cleared. For tag formats that use a fixed set of genres, the appropriate value will be selected based on a string comparison. A list of available genres for those formats should be available in that type's implementation.
1206 1207 |
# File 'lib/TagLib_doc.rb', line 1206 def setGenre(s) end |
#setTitle(s) ⇒ Object
Sets the title to s. If s is String::null then this value will be cleared.
1218 1219 |
# File 'lib/TagLib_doc.rb', line 1218 def setTitle(s) end |
#setTrack(i) ⇒ Object
Sets the track to i. If s is 0 then this value will be cleared.
1252 1253 |
# File 'lib/TagLib_doc.rb', line 1252 def setTrack(i) end |
#setYear(i) ⇒ Object
Sets the year to i. If s is 0 then this value will be cleared.
1228 1229 |
# File 'lib/TagLib_doc.rb', line 1228 def setYear(i) end |
#title ⇒ Object
Returns the track name; if no track name is present in the tag String::null will be returned.
1211 1212 |
# File 'lib/TagLib_doc.rb', line 1211 def title() end |
#title= ⇒ Object
1213 1214 |
# File 'lib/TagLib_doc.rb', line 1213 def title=() end |
#track ⇒ Object
Returns the track number; if there is no track number set, this will return 0.
1292 1293 |
# File 'lib/TagLib_doc.rb', line 1292 def track() end |
#track= ⇒ Object
1201 1202 |
# File 'lib/TagLib_doc.rb', line 1201 def track=() end |
#year ⇒ Object
Returns the year; if there is no year set, this will return 0.
1223 1224 |
# File 'lib/TagLib_doc.rb', line 1223 def year() end |
#year= ⇒ Object
1235 1236 |
# File 'lib/TagLib_doc.rb', line 1235 def year=() end |