mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-05-01 00:56:00 +00:00
stuff
This commit is contained in:
40
app/src/main/java/array_adapters/AyComponentKilo.java
Normal file
40
app/src/main/java/array_adapters/AyComponentKilo.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package ay;
|
||||
|
||||
import bH.H;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.util.Scanner;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class AyComponentKilo {
|
||||
public static String a(String paramString) {
|
||||
URL uRL = new URL(paramString);
|
||||
return a(uRL);
|
||||
}
|
||||
|
||||
public static String a(URL paramURL) {
|
||||
InputStream inputStream = null;
|
||||
try {
|
||||
inputStream = paramURL.openStream();
|
||||
String str = (new Scanner(inputStream)).useDelimiter("\\A").next();
|
||||
return str;
|
||||
} catch (IOException iOException) {
|
||||
throw iOException;
|
||||
} finally {
|
||||
try {
|
||||
if (inputStream != null)
|
||||
inputStream.close();
|
||||
} catch (IOException iOException) {
|
||||
Logger.getLogger(H.class.getName()).log(Level.SEVERE, (String)null, iOException);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/ay/k.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Reference in New Issue
Block a user