public class BabelAudio extends Object
Constructor and Description |
---|
BabelAudio(String lemma,
it.uniroma1.lcl.jlt.util.Language language,
String filename)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFileName()
Gets the filename (name.ogg) of this
BabelAudio . |
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
Gets the
Language of this BabelAudio |
String |
getLemma()
Gets the lemma of this
BabelAudio . |
static int |
getResponseCode(String urlString)
Gets the response code for an input URL string
|
String |
getUrl()
Gets the full URL this
BabelAudio . |
String |
getValidatedUrl()
Returns a valid URL for the audio file
|
int |
hashCode() |
static void |
main(String[] args) |
String |
toString() |
public String getLemma()
BabelAudio
.BabelAudio
.public it.uniroma1.lcl.jlt.util.Language getLanguage()
Language
of this BabelAudio
Language
of this BabelAudio
.public String getFileName()
BabelAudio
.BabelAudio
.public String getUrl()
BabelAudio
.BabelAudio
can be retrieved.public String getValidatedUrl()
public static int getResponseCode(String urlString) throws MalformedURLException, IOException
urlString
- the URL stringMalformedURLException
- thrown if the URL is malformedIOException
- thrown if the URL cannot be openedpublic static void main(String[] args)
Copyright © 2016–2018. All rights reserved.