code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/robotstxt/RobotstxtParser.java | Java | asf20 | 2,951 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/robotstxt/RuleSet.java | Java | asf20 | 1,806 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/robotstxt/RobotstxtConfig.java | Java | asf20 | 1,742 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/robotstxt/HostDirectives.java | Java | asf20 | 1,804 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/frontier/WorkQueues.java | Java | asf20 | 5,247 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/frontier/InProcessPagesDB.java | Java | asf20 | 2,743 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/frontier/WebURLTupleBinding.java | Java | asf20 | 1,811 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/frontier/DocIDServer.java | Java | asf20 | 4,339 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/frontier/Counters.java | Java | asf20 | 3,967 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/frontier/Frontier.java | Java | asf20 | 5,659 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/BinaryParseData.java | Java | asf20 | 1,139 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/HtmlParseData.java | Java | asf20 | 1,616 |
package edu.uci.ics.crawler4j.parser;
public class ExtractedUrlAnchorPair {
private String href;
private String anchor;
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
public String getAnchor() {
return anchor;
}
public void setAnchor(String anchor) {... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/ExtractedUrlAnchorPair.java | Java | asf20 | 351 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/Parser.java | Java | asf20 | 4,467 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/TextParseData.java | Java | asf20 | 1,141 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/HtmlContentHandler.java | Java | asf20 | 5,065 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/parser/ParseData.java | Java | asf20 | 918 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/fetcher/IdleConnectionMonitorThread.java | Java | asf20 | 1,968 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"; you may ... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/fetcher/CustomFetchStatus.java | Java | asf20 | 3,354 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java | Java | asf20 | 9,508 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetchResult.java | Java | asf20 | 2,602 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/url/URLCanonicalizer.java | Java | asf20 | 5,819 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/url/WebURL.java | Java | asf20 | 4,514 |
/**
* This class is adopted from Htmlunit with the following copyright:
*
* Copyright (c) 2002-2012 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://ww... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/url/UrlResolver.java | Java | asf20 | 19,400 |
package edu.uci.ics.crawler4j.url;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
public class TLDList {
private static Set<String> tldSet;
public static boolean contains(String str) {
return tldSet.contains(str);
}
... | zzysiat-mycrawler | src/main/java/edu/uci/ics/crawler4j/url/TLDList.java | Java | asf20 | 783 |
package com.zz.normal.framework.library.option;
public final class ZLEnumOption<T extends Enum<T>> extends ZLOption {
private final T myDefaultValue;
private T myValue;
public ZLEnumOption(String group, String optionName, T defaultValue) {
super(group, optionName);
myDefaultValue = defaultValue;
myV... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLEnumOption.java | Java | asf20 | 927 |
package com.zz.normal.framework.library.option;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.zz.normal.framework.library.option.base.ZLMiscUtil;
public class ZLStringListOption extends ZLOption {
private final List<String> myDefaultValue;
private List<String> myValue;... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLStringListOption.java | Java | asf20 | 1,240 |
package com.zz.normal.framework.library.option;
public final class ZLIntegerOption extends ZLOption {
private final int myDefaultValue;
private int myValue;
public ZLIntegerOption(String group, String optionName, int defaultValue) {
super(group, optionName);
myDefaultValue = defaultValue;
myValue = defaultVa... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLIntegerOption.java | Java | asf20 | 851 |
package com.zz.normal.framework.library.option;
public final class ZLStringOption extends ZLOption {
private final String myDefaultValue;
private String myValue;
public ZLStringOption(String group, String optionName, String defaultValue) {
super(group, optionName);
myDefaultValue = (defaultValue != null) ? def... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLStringOption.java | Java | asf20 | 899 |
package com.zz.normal.framework.library.option;
import com.zz.normal.framework.library.option.base.ZLBoolean3;
public final class ZLBoolean3Option extends ZLOption {
private ZLBoolean3 myValue;
private final ZLBoolean3 myDefaultValue;
public ZLBoolean3Option(String group, String optionName, ZLBoolean3 defaultValu... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLBoolean3Option.java | Java | asf20 | 906 |
package com.zz.normal.framework.library.option;
public final class ZLBooleanOption extends ZLOption {
private final boolean myDefaultValue;
private boolean myValue;
public ZLBooleanOption(String group, String optionName, boolean defaultValue) {
super(group, optionName);
myDefaultValue = defaultValue;
myValu... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLBooleanOption.java | Java | asf20 | 911 |
package com.zz.normal.framework.library.option.base;
public enum ZLBoolean3 {
B3_FALSE("false"),
B3_TRUE("true"),
B3_UNDEFINED("undefined");
public final String Name;
private ZLBoolean3(String name) {
Name = name;
}
public static ZLBoolean3 getByName(String name) {
for (ZLBoolean3 b3 : values()) {
if... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/base/ZLBoolean3.java | Java | asf20 | 398 |
package com.zz.normal.framework.library.option.base;
/**
* class Color. Color is presented as the triple of short's (Red, Green, Blue components)
* Each component should be in the range 0..255
*/
public final class ZLColor {
public final short Red;
public final short Green;
public final short Blue;
public ZLC... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/base/ZLColor.java | Java | asf20 | 968 |
package com.zz.normal.framework.library.option.base;
import java.util.*;
public abstract class ZLMiscUtil {
public static <T> boolean equals(T o0, T o1) {
return o0 == null ? o1 == null : o0.equals(o1);
}
public static boolean isEmptyString(String s) {
return s == null || "".equals(s);
}
public static int ... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/base/ZLMiscUtil.java | Java | asf20 | 1,820 |
package com.zz.normal.framework.library.option;
import com.zz.normal.framework.db.ZLConfig;
public abstract class ZLOption {
public static final String PLATFORM_GROUP = "PlatformOptions";
private final String myGroup;
private final String myOptionName;
protected boolean myIsSynchronized;
protected ZLOption(St... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLOption.java | Java | asf20 | 1,145 |
package com.zz.normal.framework.library.option;
public final class ZLIntegerRangeOption extends ZLOption {
public final int MinValue;
public final int MaxValue;
private final int myDefaultValue;
private int myValue;
public ZLIntegerRangeOption(String group, String optionName, int minValue, int maxValue, int def... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLIntegerRangeOption.java | Java | asf20 | 1,392 |
package com.zz.normal.framework.library.option;
import com.zz.normal.framework.library.option.base.ZLColor;
public final class ZLColorOption extends ZLOption {
private final ZLColor myDefaultValue;
private ZLColor myValue;
public ZLColorOption(String group, String optionName, ZLColor defaultValue) {
super(group... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/library/option/ZLColorOption.java | Java | asf20 | 1,225 |
package com.zz.normal.framework.db;
import java.util.List;
public abstract class ZLConfig {
public static ZLConfig Instance() {
return ourInstance;
}
private static ZLConfig ourInstance;
protected ZLConfig() {
ourInstance = this;
}
public abstract List<String> listGroups();
public abstract List<String> ... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/db/ZLConfig.java | Java | asf20 | 612 |
package com.zz.normal.framework.db;
import java.util.LinkedList;
import java.util.List;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
public final class ZLSQLiteConfi... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/db/ZLSQLiteConfig.java | Java | asf20 | 4,622 |
package com.zz.normal.framework.httpnet;
public class Command {
public short missionId = -1;
public Object params;
public boolean isCancel = false;
}
| zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/httpnet/Command.java | Java | asf20 | 165 |
package com.zz.normal.framework.resource;
public abstract class ZLResourceFile extends ZLFile {
public static ZLResourceFile createResourceFile(String path) {
return ZLibrary.Instance().createResourceFile(path);
}
static ZLResourceFile createResourceFile(ZLResourceFile parent, String name) {
return ZLibrary.I... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLResourceFile.java | Java | asf20 | 709 |
package com.zz.normal.framework.resource;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
final class ZLDTDParser {
private static final byte IGNORABLE_WHITESPACE = 0;
private static final byte LANGLE = 1;
private static final byte TAG... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLDTDParser.java | Java | asf20 | 6,381 |
package com.zz.normal.framework.resource;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
final class ZLXMLParser {
privat... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLXMLParser.java | Java | asf20 | 23,641 |
package com.zz.normal.framework.resource;
public abstract class ZLArrayUtils {
public static boolean[] createCopy(boolean[] array, int dataSize, int newLength) {
boolean[] newArray = new boolean[newLength];
if (dataSize > 0) {
System.arraycopy(array, 0, newArray, 0, dataSize);
}
return newArray;
}
publi... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLArrayUtils.java | Java | asf20 | 1,207 |
package com.zz.normal.framework.resource;
import java.util.ArrayList;
import java.util.HashMap;
final class ZLTreeResource extends ZLResource {
static ZLTreeResource ourRoot;
private static long ourTimeStamp = 0;
private static String ourLanguage = null;
private static String ourCountry = null;
priva... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLTreeResource.java | Java | asf20 | 3,778 |
package com.zz.normal.framework.resource;
final class ZLMissingResource extends ZLResource {
static final String Value = "server error";
static final ZLMissingResource Instance = new ZLMissingResource();
private ZLMissingResource() {
super(Value);
}
public ZLResource getResource(String key) {
return this;
... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLMissingResource.java | Java | asf20 | 421 |
package com.zz.normal.framework.resource;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public abstract class ZLXMLReaderAdapter implements ZLXMLReader {
private Map<String,String> myNamespaceMap = Collections.emptyMap();
public b... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLXMLReaderAdapter.java | Java | asf20 | 2,580 |
package com.zz.normal.framework.resource;
abstract public class ZLResource {
public final String Name;
public static ZLResource resource(String key) {
ZLTreeResource.buildTree();
if (ZLTreeResource.ourRoot == null) {
return ZLMissingResource.Instance;
}
return ZLTreeResource.ourRoot.getResource(key);
}... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLResource.java | Java | asf20 | 506 |
package com.zz.normal.framework.resource;
import java.util.*;
public interface ZLXMLReader {
public boolean dontCacheAttributeValues();
public void startDocumentHandler();
public void endDocumentHandler();
// returns true iff xml processing should be interrupted
public boolean startElementHandler(String tag, Z... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLXMLReader.java | Java | asf20 | 724 |
package com.zz.normal.framework.resource;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.TreeSet;
import android.app.Application;
impo... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLAndroidLibrary.java | Java | asf20 | 4,896 |
package com.zz.normal.framework.resource;
import java.util.Collections;
import java.util.List;
public abstract class ZLArchiveEntryFile extends ZLFile {
public static String normalizeEntryName(String entryName) {
while (entryName.startsWith("./")) {
entryName = entryName.substring(2);
}
while (true) {
f... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLArchiveEntryFile.java | Java | asf20 | 2,064 |
package com.zz.normal.framework.resource;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.List;
import java.util.Map;
public abstract class ZLXMLProcessor {
public static Map<String,char[]> getEntityMap(List<String> dtdList) {
try {
return ZLXMLParser.getD... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLXMLProcessor.java | Java | asf20 | 1,304 |
package com.zz.normal.framework.resource;
// optimized partially implemented map String -> String
// key must be interned
// there is no remove() in this implementation
// put with the same key does not remove old entry
public final class ZLStringMap {
private String[] myKeys;
private String[] myValues;
private i... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLStringMap.java | Java | asf20 | 1,237 |
package com.zz.normal.framework.resource;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public abstract class ZLFile {
private static final String TAG = "ZLFile";
private final static HashMap<String,ZLFile> ourCachedFiles = n... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLFile.java | Java | asf20 | 4,528 |
package com.zz.normal.framework.resource;
final class ZLMutableString {
char[] myData;
int myLength;
ZLMutableString(int len) {
myData = new char[len];
}
ZLMutableString() {
this(20);
}
ZLMutableString(ZLMutableString container) {
final int len = container.myLength;
myData = ZLArrayUtils.createCopy(... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLMutableString.java | Java | asf20 | 1,504 |
package com.zz.normal.framework.resource;
import java.util.Collection;
public abstract class ZLibrary {
public static ZLibrary Instance() {
return ourImplementation;
}
private static ZLibrary ourImplementation;
protected ZLibrary() {
ourImplementation = this;
}
abstract public ZLResourceFile createReso... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLibrary.java | Java | asf20 | 722 |
package com.zz.normal.framework.resource;
import java.util.*;
import java.io.*;
public final class ZLPhysicalFile extends ZLFile {
private final File myFile;
ZLPhysicalFile(String path) {
this(new File(path));
}
public ZLPhysicalFile(File file) {
myFile = file;
init();
}
@Override
public boolean exist... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/framework/resource/ZLPhysicalFile.java | Java | asf20 | 1,487 |
package com.zz.normal.util;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.os.AsyncTask;
import android.view.Window;
import android.view.WindowManager;
impor... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/ActivityUtils.java | Java | asf20 | 9,272 |
package com.zz.normal.util;
import java.security.MessageDigest;
public final class Md5Token {
private static char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
private static Md5Token instance = null;
private Md5Token() {
}
public synchronized stati... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/Md5Token.java | Java | asf20 | 1,310 |
package com.zz.normal.util;
/**
* <p>Encodes and decodes to and from Base64 notation.</p>
* <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
*
* <p>
* Change Log:
* </p>
* <ul>
* <li>v2.2.1 - Fixed bug using URL_SAFE and ORDERED encodings. Fixed bug
* when usin... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/Base64.java | Java | asf20 | 68,454 |
package com.zz.normal.util.callback;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 20:52:44 - 03.01.2010
*/
public interface Callable<T> {
// ===========================================================
// Constants
// ============================================... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/callback/Callable.java | Java | asf20 | 680 |
package com.zz.normal.util.callback;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 20:52:44 - 03.01.2010
*/
public interface ProgressCallable<T> {
// ===========================================================
// Constants
// ===================================... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/callback/ProgressCallable.java | Java | asf20 | 749 |
package com.zz.normal.util.callback;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 15:00:30 - 14.05.2010
* @param <T>
*/
public interface AsyncCallable<T> {
// ===========================================================
// Constants
// =========================... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/callback/AsyncCallable.java | Java | asf20 | 896 |
package com.zz.normal.util.callback;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 18:07:35 - 09.07.2009
*/
public interface IProgressListener {
// ===========================================================
// Constants
// =====================================... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/callback/IProgressListener.java | Java | asf20 | 678 |
package com.zz.normal.util.callback;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 09:40:55 - 14.12.2009
*/
public interface Callback<T> {
// ===========================================================
// Constants
// ============================================... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/callback/Callback.java | Java | asf20 | 528 |
package com.zz.normal.util.callback;
/**
* (c) Zynga 2012
*
* @author Nicolas Gramlich <ngramlich@zynga.com>
* @since 16:33:53 - 23.04.2012
*/
public class CancelledException extends Exception {
// ===========================================================
// Constants
// =====================================... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/callback/CancelledException.java | Java | asf20 | 1,640 |
package com.zz.normal.util.image;
import com.zz.normal.framework.ZConfiguration;
public class Paths {
public static String networkCacheDirectory() {
return cacheDirectory() + "/cache";
}
public static String networkDirectory() {
return ZConfiguration.getInstance().getRootFolder();
}
publi... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/Paths.java | Java | asf20 | 406 |
package com.zz.normal.util.image;
public final class ZLAndroidImageManager extends ZLImageManager {
private static ZLAndroidImageManager instance;
public static ZLAndroidImageManager getInstance() {
if(null == instance){
instance = new ZLAndroidImageManager();
}
return instance;
}
public ZLAndroidI... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/ZLAndroidImageManager.java | Java | asf20 | 696 |
package com.zz.normal.util.image;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import com.zz.normal.framework.ZConfiguration;
... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/ZLNetworkManager.java | Java | asf20 | 1,839 |
package com.zz.normal.util.image;
public interface ZLImage {
}
| zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/ZLImage.java | Java | asf20 | 67 |
package com.zz.normal.util.image;
public abstract class ZLSingleImage implements ZLImage {
private final String myMimeType;
public ZLSingleImage(final String mimeType) {
myMimeType = mimeType;
}
public abstract byte [] byteData();
public final String mimeType() {
return myMimeType;
}
}
| zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/ZLSingleImage.java | Java | asf20 | 320 |
package com.zz.normal.util.image;
public abstract class ZLImageManager {
private static ZLImageManager ourInstance;
public static ZLImageManager Instance() {
return ourInstance;
}
protected ZLImageManager() {
ourInstance = this;
}
public abstract ZLImageData getImageData(ZLImage image);
/* protected fi... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/ZLImageManager.java | Java | asf20 | 6,275 |
/*
* Copyright (C) 2007-2010 Geometer Plus <contact@geometerplus.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ver... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/util/image/ZLImageData.java | Java | asf20 | 868 |
package com.zz.normal.ui.widgt.pullrefresh.intnal;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.Interpolator;
import android.view.animation.LinearInterpolator;
import a... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/ui/widgt/pullrefresh/intnal/LoadingLayout.java | Java | asf20 | 3,734 |
package com.zz.normal.ui.widgt.pullrefresh.intnal;
import android.view.View;
import android.widget.ImageView;
/**
* Interface that allows PullToRefreshBase to hijack the call to
* AdapterView.setEmptyView()
*
* @author chris
*/
public interface EmptyViewMethodAccessor {
/**
* Calls upto AdapterView.setEmpty... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/ui/widgt/pullrefresh/intnal/EmptyViewMethodAccessor.java | Java | asf20 | 680 |
package com.zz.normal.ui.widgt.pullrefresh;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.AbsListView;
import android.widget.AbsListView.On... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/ui/widgt/pullrefresh/PullToRefreshAdapterViewBase.java | Java | asf20 | 5,677 |
package com.zz.normal.ui.widgt.pullrefresh;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/ui/widgt/pullrefresh/PullToRefreshBase.java | Java | asf20 | 20,359 |
package com.zz.normal.ui.widgt.pullrefresh;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;
import android.widget.ListView;
import com.zz.normal.ui.widgt.pullrefresh.intnal.EmptyViewMethodAccessor;
public class PullToRefresh... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/ui/widgt/pullrefresh/PullToRefreshListView.java | Java | asf20 | 1,684 |
package com.zz.normal.ui.widgt.pullrefresh;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ScrollView;
import com.zz.normal.R;
public class PullToRefreshScrollView extends PullToRefreshBase<ScrollView> {
private final OnRefreshListener defaultOnRefreshListener = new OnRefre... | zz-music-release | trunk/zz-normal-net/src/com/zz/normal/ui/widgt/pullrefresh/PullToRefreshScrollView.java | Java | asf20 | 1,586 |
package net.srcz.android.screencast;
import java.io.IOException;
import net.srcz.android.screencast.api.injector.Injector;
import net.srcz.android.screencast.app.SwingApplication;
import net.srcz.android.screencast.ui.JDialogDeviceList;
import net.srcz.android.screencast.ui.JFrameMain;
import net.srcz.android... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/Main.java | Java | asf20 | 2,554 |
package net.srcz.android.screencast.app;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import net.srcz.android.screencast.ui.JDialogError;
public class SwingApplication extends Application {
JDialogError jd = null;
public SwingApplicati... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/app/SwingApplication.java | Java | asf20 | 1,085 |
package net.srcz.android.screencast.app;
import java.lang.Thread.UncaughtExceptionHandler;
public class Application {
public Application() {
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
close();
}
});
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler()... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/app/Application.java | Java | asf20 | 624 |
package net.srcz.android.screencast.ui;
import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JWindow;
public class JSplashScreen extends JWindow {
JLabel label = new JLabel("Loading...",
new ImageIcon(JFrameMain.cl... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/JSplashScreen.java | Java | asf20 | 794 |
package net.srcz.android.screencast.ui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.e... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/JFrameMain.java | Java | asf20 | 8,839 |
package net.srcz.android.screencast.ui.pm;
public class JFrameApps {
}
| zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/pm/JFrameApps.java | Java | asf20 | 73 |
package net.srcz.android.screencast.ui;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import javax.swing.JPanel;
public class JPanelScreen extends JPanel {
public float coef = 1;
double origX;
double origY;
boolean landscape;
Dimension size... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/JPanelScreen.java | Java | asf20 | 1,251 |
package net.srcz.android.screencast.ui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swi... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/JDialogDeviceList.java | Java | asf20 | 2,953 |
package net.srcz.android.screencast.ui.explorer;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.Iterator;
import java.util.Vector;
import java.util.concurrent.ExecutionException;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JTree;
import javax.s... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/explorer/LazyLoadingTreeNode.java | Java | asf20 | 7,927 |
package net.srcz.android.screencast.ui.explorer;
import java.awt.BorderLayout;
import java.awt.Desktop;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.swing.JF... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/explorer/JFrameExplorer.java | Java | asf20 | 3,703 |
package net.srcz.android.screencast.ui.explorer;
import javax.swing.tree.DefaultMutableTreeNode;
public abstract class LazyMutableTreeNode extends DefaultMutableTreeNode {
protected boolean _loaded = false;
public LazyMutableTreeNode() {
super();
}
public LazyMutableTreeNode(Object userObject) {
super(user... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/explorer/LazyMutableTreeNode.java | Java | asf20 | 779 |
package net.srcz.android.screencast.ui;
import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.util.StringTokenizer;
import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
impor... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/MultiLineLabelUI.java | Java | asf20 | 12,476 |
package net.srcz.android.screencast.ui;
import java.awt.BorderLayout;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.swing.JDialog;
import javax.swing.JTextArea;
public class JDialogError extends JDialog {
public JDialogError(Throwable ex) {
getRootPane().setLayout(new BorderLa... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/JDialogError.java | Java | asf20 | 720 |
package net.srcz.android.screencast.ui.worker;
/*
* $Id: AccumulativeRunnable.java,v 1.3 2008/07/25 19:32:29 idk Exp $
*
* Copyright � 2005 Sun Microsystems, Inc. All rights
* reserved. Use is subject to license terms.
*/
import java.util.*;
import javax.swing.SwingUtilities;
/**
* An abstract cla... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/worker/AccumulativeRunnable.java | Java | asf20 | 4,804 |
/*
* $Id: SwingWorker.java,v 1.6 2008/07/25 19:32:29 idk Exp $
*
* Copyright � 2005 Sun Microsystems, Inc. All rights
* reserved. Use is subject to license terms.
*/
package net.srcz.android.screencast.ui.worker;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
impo... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/worker/SwingWorker.java | Java | asf20 | 31,664 |
package net.srcz.android.screencast.ui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JTextField;
public class JDialogUrl extends JDialog {
JTextField jtfUrl = new JTextField();
JBut... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/ui/JDialogUrl.java | Java | asf20 | 869 |
package net.srcz.android.screencast.api;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class StreamUtils {
public static void transfert(InputStream is, OutputStream os) {
try {
while(true) {
int val = is.rea... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/StreamUtils.java | Java | asf20 | 891 |
package net.srcz.android.screencast.api.recording;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.io.*;
import java.util.Date;
import java.util.LinkedList;
import javax.imageio.*;
import javax.imageio.stream.*;
public class QuickTimeOutputStream {
/**
* Output stream ... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/recording/QuickTimeOutputStream.java | Java | asf20 | 69,678 |
package net.srcz.android.screencast.api.recording;
import java.io.*;
import javax.imageio.stream.ImageOutputStream;
public class FilterImageOutputStream extends FilterOutputStream {
private ImageOutputStream imgOut;
public FilterImageOutputStream(ImageOutputStream iOut) {
super(null);
thi... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/recording/FilterImageOutputStream.java | Java | asf20 | 3,134 |
package net.srcz.android.screencast.api.recording;
import java.io.*;
import java.util.Date;
import java.util.GregorianCalendar;
public class DataAtomOutputStream extends FilterOutputStream {
protected static final long MAC_TIMESTAMP_EPOCH = new GregorianCalendar(1904, GregorianCalendar.JANUARY, 1).getTimeInMilli... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/recording/DataAtomOutputStream.java | Java | asf20 | 9,940 |
package net.srcz.android.screencast.api.injector;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.swing.SwingUtilities;
import net.srcz.android.screencast.api.recording.QuickTimeOutputStream;
import com.android.ddmlib.IDevice;
import com.... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/ScreenCaptureThread.java | Java | asf20 | 3,957 |