Class BabelAudio
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelAudio
-
Constructor Summary
ConstructorsConstructorDescriptionBabelAudio(String lemma, it.uniroma1.lcl.jlt.util.Language language, String filename) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the filename (name.ogg) of thisBabelAudio.it.uniroma1.lcl.jlt.util.LanguageGets theLanguageof thisBabelAudiogetLemma()Gets the lemma of thisBabelAudio.static intgetResponseCode(String urlString) Gets the response code for an input URL stringgetUrl()Gets the full URL thisBabelAudio.Deprecated.Returns a valid URL for the audio fileinthashCode()static voidtoString()
-
Constructor Details
-
BabelAudio
-
-
Method Details
-
getLemma
-
getLanguage
public it.uniroma1.lcl.jlt.util.Language getLanguage()Gets theLanguageof thisBabelAudio- Returns:
- the
Languageof thisBabelAudio.
-
getFileName
Gets the filename (name.ogg) of thisBabelAudio.- Returns:
- the filename (name.ogg) of this
BabelAudio.
-
getUrl
Gets the full URL thisBabelAudio.- Returns:
- the URL from which this
BabelAudiocan be retrieved.
-
getValidatedUrl
Deprecated.Returns a valid URL for the audio file- Returns:
- valid URL
-
equals
-
hashCode
-
toString
-
getResponseCode
Gets the response code for an input URL string- Parameters:
urlString- the URL string- Returns:
- the response code for an input URL
- Throws:
MalformedURLException- thrown if the URL is malformedIOException- thrown if the URL cannot be opened
-
main
-