text
stringlengths
3
1.18M
package net.sourceforge.jsocks; /** The Authentication interface provides for performing method specific authentication for SOCKS5 connections. */ public interface Authentication{ /** This method is called when SOCKS5 server have selected a particular authentication method, for whch an implemen...
package net.sourceforge.jsocks; /** Exception thrown by various socks classes to indicate errors with protocol or unsuccessful server responses. */ public class SocksException extends java.io.IOException{ private static final long serialVersionUID = 6141184566248512277L; /** Construct a SocksExcep...
package net.sourceforge.jsocks; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.io.InterruptedIOException; import java.io.OutputStream; import java.io.PrintStream; import java.io.PushbackInputStream; import java.net.ConnectException; import java.net.InetAddress;...
package net.sourceforge.jsocks; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.Socket; import java.net.SocketException; import java.net.UnknownHostException; import java.util.Enumeration; import java.util.Hashtable; /** SOC...
/** * Originally from http://www.cornetdesign.com/files/BeanTestCase.java.txt */ package org.connectbot.mock; import junit.framework.TestCase; import java.lang.reflect.Field; public class BeanTestCase extends TestCase { private static final String TEST_STRING_VAL1 = "Some Value"; private static final String TES...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * ConnectBot: simple, powerful, open-source SSH client for Android * Copyright 2007 Kenny Root, Jeffrey Sharkey * * 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://www.a...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
package com.google.samples.meetingscheduler.adapter; import com.google.samples.meetingscheduler.R; import com.google.samples.meetingscheduler.model.Attendee; import com.google.samples.meetingscheduler.util.AttendeeComparator; import android.content.Context; import android.graphics.Color; import android.net.Uri; impor...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
package com.google.samples.meetingscheduler.util; import com.google.samples.meetingscheduler.model.Attendee; import java.util.Comparator; /** * Comparator used to sort a list of attendees. The attendees are sorted * alphabetically and from selected to unselected. * * @author Alain Vongsouvanh (alainv@google.com...
// Copyright 2011 Google Inc. All Rights Reserved. package com.google.samples.meetingscheduler.util; import com.google.api.client.extensions.android2.AndroidHttp; import com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAccessProtectedResource; import com.google.api.client.http.HttpTransport; import com.goog...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
// Copyright 2011 Google Inc. All Rights Reserved. package com.google.samples.meetingscheduler.model; /** * Constants used by the Meeting Scheduler application. * * @author Alain Vongsouvanh (alainv@google.com) */ public class Constants { /** * Should be used by all log statements */ public static fina...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (c) 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
// Copyright 2011 Google Inc. All Rights Reserved. package com.google.samples.meetingscheduler.activity; import com.google.samples.meetingscheduler.R; import com.google.samples.meetingscheduler.model.Constants; import com.google.samples.meetingscheduler.util.OAuthManager; import com.google.samples.meetingscheduler.ut...
package com.example.android09_preference; import org.xmlpull.v1.XmlSerializer; import android.os.Bundle; import android.preference.PreferenceManager; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.view.Menu; import android.view.View; imp...
package com.example.android09_preference; import android.os.Bundle; import android.preference.PreferenceActivity; import android.app.Activity; import android.view.Menu; public class EditActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android09_preference; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android11_udp; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import android.os.Build; import android.os.Bundle; import android.os.StrictMode; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.ap...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android11_udp; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android05_ytn; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android12_saxparser; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android06_intent; import java.io.Serializable; public class Member implements Serializable { String name= "kim gun"; int age =30; public void hi (){}; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android06_intent; public final class BuildConfig { public final static boolean DEBUG = true; }
package start; public class Fathertest extends Son{ /** * @param args */ public static void main(String[] args) { Fathertest fa = new Fathertest(); System.out.println(fa.money); fa.work(); System.out.println(fa.money); Son s = new Son(); s.play(); s.work(); Object...
package start; public class Dog{ int a=30; public void minus() { System.out.println("minus"); } }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android06_intent2; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android06_dialog; public final class BuildConfig { public final static boolean DEBUG = true; }
public class ThreadStudy { /** * @param args */ public static void main(String[] args) { for(int i =0;i<=10;i++) { System.out.println(i); try { Thread.sleep(500); } catch (Exception e) { e.printStackTrace(); } } for(int i =0;i<=10;i++) System.out.print("*")...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android10_http; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android05_spiner; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android08_menu; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android10_client; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.net.Socket; import android.os.Build; import android.os.StrictMode; import android.os.Bundle; import android.annotation.SuppressLint; ...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android10_client; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android09_sharedpreference; import android.os.Bundle; import android.app.Activity; import android.content.SharedPreferences; import android.view.Menu; import android.widget.TextView; public class SubActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceSta...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android09_sharedpreference; public final class BuildConfig { public final static boolean DEBUG = true; }
import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; public class FilewriteStudy { /** * @param args */ public static void main(String[] args) { File file= new File("c:/jave.txt"); byte[] data=new byte[100]; for(int i = 0;i<100;i++){ data[i]=(by...
/** Automatically generated file. DO NOT MODIFY */ package com.example.hello; public final class BuildConfig { public final static boolean DEBUG = true; }
/* * Copyright (C) 2013 The Android Open Source Project * * 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/** Automatically generated file. DO NOT MODIFY */ package com.google.android.gms; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android03_widget; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android15_sqlite; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android14_json; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android_gallery2; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android_gallery2; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android_gallay; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android11_dom; public class Product { private String name; private String price; private String size; public Product(){ super(); } public Product(String name, String price, String size) { super(); this.name = name; this.price = price; this.size = size; } publ...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android11_dom; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android05_listview; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android07_file; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android04_intent; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class SubActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sub);...
package com.example.android04_intent; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MainActivity extends Activity { Button bt...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android04_intent; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android05_grid; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.android14_fragment; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ma...
/** Automatically generated file. DO NOT MODIFY */ package com.example.android14_fragment; public final class BuildConfig { public final static boolean DEBUG = true; }
/** Automatically generated file. DO NOT MODIFY */ package com.example.android02_thread; public final class BuildConfig { public final static boolean DEBUG = true; }
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without li...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * 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"); yo...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * 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"); yo...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/*- * Copyright 2010 Google 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...