Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tech.kacz.programming;
- import java.net.URISyntaxException;
- import java.util.LinkedHashSet;
- import java.util.Set;
- import java.net.MalformedURLException;
- import java.net.URI;
- import java.net.URL;
- import java.util.Date;
- import java.util.Collection;
- import java.util.ArrayList;
- import java.util.Collections;
- import java.nio.charset.Charset;
- import javax.annotation.Nullable;
- import java.util.List;
- public final class IIIIIIiiIiiiI
- {
- public static /* synthetic */ void namesAndValuesToQueryString(final StringBuilder iIiIiiiiIIIiI, final List<String> iIiIiiiiIIIiI) {
- int n = 0;
- final int size = iIiIiiiiIIIiI.size();
- int i = n;
- while (i < size) {
- final String str = iIiIiiiiIIIiI.get(n);
- final String str2 = iIiIiiiiIIIiI.get(n + 1);
- if (n > 0) {
- iIiIiiiiIIIiI.append('&');
- }
- iIiIiiiiIIIiI.append(str);
- if (str2 != null) {
- iIiIiiiiIIIiI.append('=');
- iIiIiiiiIIIiI.append(str2);
- }
- n += 2;
- i = n;
- }
- }
- public static /* synthetic */ String percentDecode(final String iIiIiiiiIIIiI, final boolean iIiIiiiiIIIiI) {
- return percentDecode(iIiIiiiiIIIiI, 0, iIiIiiiiIIIiI.length(), iIiIiiiiIIIiI);
- }
- private /* synthetic */ List<String> percentDecode(final List<String> iIiIiiiiIIIiI, final boolean iIiIiiiiIIIiI) {
- final int size = iIiIiiiiIIIiI.size();
- final ArrayList list = new ArrayList<String>(size);
- int n;
- int i = n = 0;
- while (i < size) {
- final String iIiIiiiiIIIiI2 = iIiIiiiiIIIiI.get(n);
- list.add((iIiIiiiiIIIiI2 != null) ? percentDecode(iIiIiiiiIIIiI2, iIiIiiiiIIIiI) : null);
- i = ++n;
- }
- return Collections.unmodifiableList((List<? extends String>)list);
- }
- public static /* synthetic */ void pathSegmentsToString(final StringBuilder iIiIiiiiIIIiI, final List<String> iIiIiiiiIIIiI) {
- int n = 0;
- final int size = iIiIiiiiIIIiI.size();
- int i = n;
- while (i < size) {
- final int n2 = n;
- iIiIiiiiIIIiI.append('/');
- ++n;
- iIiIiiiiIIIiI.append(iIiIiiiiIIIiI.get(n2));
- i = n;
- }
- }
- public static /* synthetic */ String percentDecode(final String iIiIiiiiIIIiI, final int iIiIiiiiIIIiI, final int iIiIiiiiIIIiI, final boolean iIiIiiiiIIIiI) {
- int i = iIiIiiiiIIIiI;
- int iIiIiiiiIIIiI2 = iIiIiiiiIIIiI;
- while (i < iIiIiiiiIIIiI) {
- final char char1;
- if ((char1 = iIiIiiiiIIIiI.charAt(iIiIiiiiIIIiI2)) == '%' || (char1 == '+' && iIiIiiiiIIIiI)) {
- final iIIIIIiiiiiiI iiiiiIiiiiiiI;
- (iiiiiIiiiiiiI = new iIIIIIiiiiiiI()).writeUtf8(iIiIiiiiIIIiI, iIiIiiiiIIIiI, iIiIiiiiIIIiI2);
- final iIIIIIiiiiiiI iIiIiiiiIIIiI3 = iiiiiIiiiiiiI;
- percentDecode(iIiIiiiiIIIiI3, iIiIiiiiIIIiI, iIiIiiiiIIIiI2, iIiIiiiiIIIiI, iIiIiiiiIIIiI);
- return iIiIiiiiIIIiI3.readUtf8();
- }
- i = ++iIiIiiiiIIIiI2;
- }
- return iIiIiiiiIIIiI.substring(iIiIiiiiIIIiI, iIiIiiiiIIIiI);
- }
- public static /* synthetic */ void percentDecode(final iIIIIIiiiiiiI iIiIiiiiIIIiI, final String iIiIiiiiIIIiI, int iIiIiiiiIIIiI, final int iIiIiiiiIIIiI, final boolean iIiIiiiiIIIiI) {
- int index;
- int i = index = iIiIiiiiIIIiI;
- while (i < iIiIiiiiIIIiI) {
- int n2 = 0;
- Label_0150: {
- if ((iIiIiiiiIIIiI = iIiIiiiiIIIiI.codePointAt(index)) == 37 && index + 2 < iIiIiiiiIIIiI) {
- final int decodeHexDigit = iiIIIIiiIiiIi.decodeHexDigit(iIiIiiiiIIIiI.charAt(index + 1));
- final int decodeHexDigit2 = iiIIIIiiIiiIi.decodeHexDigit(iIiIiiiiIIIiI.charAt(index + 2));
- if (decodeHexDigit != -1 && decodeHexDigit2 != -1) {
- final int n = decodeHexDigit << 4;
- index += 2;
- iIiIiiiiIIIiI.writeByte(n + decodeHexDigit2);
- n2 = index;
- break Label_0150;
- }
- }
- else if (iIiIiiiiIIIiI == 43 && iIiIiiiiIIIiI) {
- n2 = index;
- iIiIiiiiIIIiI.writeByte(32);
- break Label_0150;
- }
- iIiIiiiiIIIiI.writeUtf8CodePoint(iIiIiiiiIIIiI);
- n2 = index;
- }
- i = (index = n2 + Character.charCount(iIiIiiiiIIIiI));
- }
- }
- public static /* synthetic */ int defaultPort(final String iIiIiiiiIIIiI) {
- if (iIiIiiiiIIIiI.equals("http")) {
- return 80;
- }
- if (iIiIiiiiIIIiI.equals("https")) {
- return 443;
- }
- return -1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement