code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * Các thông tin về lỗi của phần khai báo * @author Administrator */ public enum jEnum_Loi { CacBienTrungTen ("Tồn tại tham số hoặc giá trị trả về trùng tên nhau!"), Ch...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * * @author Administrator */ public class jClass_GiaTri { public static Boolean jKiemTraChuoiHopDinhDang(S...
Java
/* * _Bai02_PhanTichPhanKhaiBaoAboutBox.java */ package _bai02_phantichphankhaibao; import org.jdesktop.application.Action; public class _Bai02_PhanTichPhanKhaiBaoAboutBox extends javax.swing.JDialog { public _Bai02_PhanTichPhanKhaiBaoAboutBox(java.awt.Frame parent) { super(parent); initCompon...
Java
/* * _Bai02_PhanTichPhanKhaiBaoApp.java */ package _bai02_phantichphankhaibao; import org.jdesktop.application.Application; import org.jdesktop.application.SingleFrameApplication; /** * The main class of the application. */ public class _Bai02_PhanTichPhanKhaiBaoApp extends SingleFrameApplication { /** ...
Java
/* * _Bai02_PhanTichPhanKhaiBaoView.java */ package _bai02_phantichphankhaibao; import java.awt.Color; import java.io.FileNotFoundException; import java.util.logging.Level; import java.util.logging.Logger; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.appli...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * Các chuổi định dạng (RegEx) cho tên biến, kiểu dữ liệu... * @author Administrator */ public enum jEnum_ChuoiDinhDang { TenBien ("[A-Za-z0-9_]+"), TenHam ("[A-Za-z0-9...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * VM i TH {1 .. n-1} * @author Administrator */ public class jClass_PhanKhaiBaoBieuThucLuongTu implements Inte...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JOptionPane; /** * //(VM i TH {1 .. n-1}. TT j TH{1 .. n-2}. (x[i] > ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * * @author Administrator */ public enum jEnum_BieuThucLuongTu { VoiMoi ("VM"), TonTai ("TT"); private String value; jEnum_BieuThucLuongTu(String value) { ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * * @author Administrator */ public interface Interface_CacThanhPhanDacTa { /** * * Tách chuổi và đưa và các thuộc tính của lớp jClass_PhaKhaiBao * @param ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.ArrayList; /** * * @author Administrator */ public class jClass_BoTaoCode { /** * Chuyển kiểu dữ liệu từ ngôn ngữ đặc tả sang ngôn ngữ lập trình *...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * * @author Administrator */ public class jClass_TenBien { public static Boolean jKiemTraChuoiHopDinhDang(...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * * @author Administrator */ enum jEnum_DauPhanCach{ //Doi voi cac ky tu dac biet phai dung them dau '\\' TenHam_PhanConLai("\\("), GiaTriTraVe_CacThamSo("\\)"), ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * * @author Administrator */ public enum jEnum_CacKyTuDacBietCoTheChoNguoiDungDinhNghia { Thuoc ("TH"); private String value; jEnum_CacKyTuDacBietCoTheChoNguoiDu...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JOptionPane; /** * * @author Administrator */ public class jClass_BieuThucLogic implements Inte...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * Lưu thông tin của một lỗi * @author Administrator */ public class jClass_Loi { private jEnum_Loi _MoTa; private int _ViTri; private String _ThongTinBoSung; ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * mot truong hop dac ta cho ra mot ket qua cu the * vi du: (K1 = a) /\ (a >= b) * @author Administrator */ pu...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.ArrayList; import java.util.regex.*; import javax.swing.JOptionPane; /** * * @author Administrator */ public class jClass_PhanKhaiBao implements Interface_CacThan...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JOptionPane; /** * * @author Administrator */ public class jClass_PhanPost implements Interface...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * * @author Administrator */ public class jClass_Bien { private String _Ten; private String _KieuDuLie...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; /** * * @author Administrator */ public enum jEnum_ThongTinBoSung { /** * ví dụ: dấu tab giửa: Tên hàm: 'và' abc */ KhoangCachTrongMotPhan("\t"), /** * ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.text.html.HTMLDocument; import javax.swing.text.html.HTMLWriter; /** * Phần đặc tả cần phát sinh ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package _bai02_phantichphankhaibao; import java.awt.Color; import javax.swing.text.MutableAttributeSet; import javax.swing.text.SimpleAttributeSet; import javax.swing.text.StyleConstants; /** * * @author Administra...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WA...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WA...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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 3 of the License, or (at your option) any later version. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
package org.sshtunnel; import java.util.List; import org.sshtunnel.db.Profile; import org.sshtunnel.db.ProfileFactory; import org.sshtunnel.utils.Constraints; import org.sshtunnel.utils.Utils; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.cont...
Java
/* sshtunnel - SSH Tunnel App for Android * Copyright (C) 2011 Max Lv <max.c.lv@gmail.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 3 of the License, or * (at...
Java
package org.sshtunnel; public class Option implements Comparable<Option>{ private String name; private String data; private String path; public Option(String n,String d,String p) { name = n; data = d; path = p; } @Override public int compareTo(Option o) { if(this.name != null) retu...
Java
/* sshtunnel - SSH Tunnel App for Android * Copyright (C) 2011 Max Lv <max.c.lv@gmail.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 3 of the License, or * (at...
Java
package org.sshtunnel.utils; import android.graphics.drawable.Drawable; public class ProxyedApp { private boolean enabled; private int uid; private String username; private String procname; private String name; private boolean proxyed = false; /** * @return the name */ public String ...
Java
/* * 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...
Java
package org.sshtunnel.utils; /** * <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>Example:</p> * * <code>String encoded = Base64.encode( myByteArray );</code> * <br /> * <code>byte[] myByteArray = Base64.dec...
Java
package org.sshtunnel.utils; import org.sshtunnel.R; import org.sshtunnel.SSHTunnel; import org.sshtunnel.SSHTunnelContext; import org.sshtunnel.SSHTunnelService; import org.sshtunnel.db.Profile; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; im...
Java
/* * 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...
Java
package org.sshtunnel.utils; import java.io.IOException; import java.net.Socket; import android.util.Log; public class InnerSocketBuilder { private String proxyHost = "127.0.0.1"; private int proxyPort = 1053; private Socket innerSocket = null; private boolean isConnected = false; private final String TAG =...
Java
package org.sshtunnel.utils; public class Constraints { public static final String ID = "profile_id"; public static final String NAME = "name"; public static final String USER = "user"; public static final String PASSWORD = "password"; public static final String HOST = "host"; public static final Stri...
Java
package org.sshtunnel; import java.io.IOException; public interface WrapServer extends Runnable { public abstract void close() throws IOException; public abstract int getServPort(); public abstract boolean isClosed(); public abstract void setProxyHost(String host); public abstract void setProxyPort(int port...
Java
/* sshtunnel - SSH Tunnel App for Android * Copyright (C) 2011 Max Lv <max.c.lv@gmail.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 3 of the License, or * (at your ...
Java
package org.sshtunnel; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import jav...
Java
package org.sshtunnel; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.HashMap; import java.util.Stack; import org.sshtunnel.utils.Utils; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import androi...
Java
package org.sshtunnel; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.sshtunnel.utils.Constraints; import android.app.ListActivity; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; im...
Java
package org.sshtunnel; import org.sshtunnel.db.Profile; import org.sshtunnel.db.ProfileFactory; import org.sshtunnel.utils.Constraints; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bun...
Java
package org.sshtunnel.db; import java.util.List; import org.sshtunnel.SSHTunnelContext; import org.sshtunnel.utils.Constraints; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.preference.PreferenceManager; import android.util.Log; import com.j256...
Java
package org.sshtunnel.db; import java.sql.SQLException; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.support.ConnectionSource; import c...
Java
/* sshtunnel - SSH Tunnel App for Android * Copyright (C) 2011 Max Lv <max.c.lv@gmail.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 3 of the License, or * (at...
Java
package org.sshtunnel; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class FileArrayAdapter extends ArrayAdapter<Option>{ p...
Java
package org.sshtunnel; import android.app.Application; import android.content.Context; public class SSHTunnelContext extends Application { private static Context context; public void onCreate() { SSHTunnelContext.context = getApplicationContext(); } public...
Java
/* Copyright (c) 2009, Nathan Freitas, Orbot / The Guardian Project - http://openideals.com/guardian */ /* See LICENSE for licensing information */ package org.sshtunnel; import java.util.Arrays; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.StringTokenizer; ...
Java
// dbartists - Douban artists client for Android // Copyright (C) 2011 Max Lv <max.c.lv@gmail.com> // // 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/licens...
Java
package net.sourceforge.jsocks; import java.io.IOException; import java.io.InterruptedIOException; import java.io.PrintStream; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; import net.sourceforge.js...
Java
package net.sourceforge.jsocks; import java.io.IOException; import java.io.InputStream; import java.net.InetAddress; import java.net.UnknownHostException; /** * Proxy which describes SOCKS4 proxy. */ public class Socks4Proxy extends Proxy implements Cloneable { // Data members String user; // ...
Java
package net.sourceforge.jsocks; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.UnknownHostException; /** * SOCKS5 request/response message. */ public class Socks5Message extends ProxyMess...
Java
package net.sourceforge.jsocks; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.UnknownHostException; /** * SOCKS4 Reply/Request message. */ public class Socks4Message extends ProxyMessage...
Java
package net.sourceforge.jsocks; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.UnknownHostException; /** * Abstract class which describes SOCKS4/5 response/request. */ public abstract class ProxyMessage { static final St...
Java
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; /** *...
Java
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 implem...
Java
package net.sourceforge.jsocks; /** * SOCKS5 none authentication. Dummy class does almost nothing. */ public class AuthenticationNone implements Authentication { @Override public Object[] doSocksAuthentication(int methodId, java.net.Socket proxySocket) throws java.io.IOException { if (methodId !=...
Java
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; /** * SocksSocket tryies to look very similar to normal Socket, w...
Java
package net.sourceforge.jsocks; /** * This interface provides for datagram encapsulation for SOCKSv5 protocol. * <p> * SOCKSv5 allows for datagrams to be encapsulated for purposes of integrity * and/or authenticity. How it should be done is aggreed during the * authentication stage, and is authentication d...
Java
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.InetAddres...
Java
package net.sourceforge.jsocks; import java.io.IOException; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketException; import java.net.UnknownHostException; /** * SocksServerSocket allows to accept connections from one particular host * through the...
Java
package net.sourceforge.jsocks.server; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PushbackInputStream; import java.net.Socket; import net.sourceforge.jsocks.ProxyMessage; import net.sourceforge.jsocks.UDPEncapsulation; /** * An implementation of S...
Java
package net.sourceforge.jsocks.server; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.DatagramPacket; import java.net.Socket; import net.sourceforge.jsocks.ProxyMessage; import net.sourceforge.jsocks.UDPEncapsulation; /** * Classes implementing this ...
Java
package net.sourceforge.jsocks; import java.io.IOException; import java.io.InputStream; import java.io.InterruptedIOException; import java.io.OutputStream; import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; /** * Abstract class Proxy, base for classes Socks4Proxy an...
Java
package net.sourceforge.jsocks; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InterruptedIOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; /** * Datagram socket to interract through the firewall.<BR> * Can be used s...
Java
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; static final String UNASSIG...
Java
package com.trilead.ssh2; /** * An abstract marker interface implemented by all proxy data implementations. * * @see HTTPProxyData * * @author Christian Plattner, plattner@trilead.com * @version $Id: ProxyData.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public abstract interface ProxyData { ...
Java
package com.trilead.ssh2; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.nio.charset.Charset; import java.util.HashMap; import java.util.Vector; import com.trilead.ssh2.packets.TypesReader; i...
Java
package com.trilead.ssh2; /** * An <code>InteractiveCallback</code> is used to respond to challenges sent by * the server if authentication mode "keyboard-interactive" is selected. * * @see Connection#authenticateWithKeyboardInteractive(String, String[], * InteractiveCallback) * * @author Christ...
Java
package com.trilead.ssh2; /** * A <code>DHGexParameters</code> object can be used to specify parameters for * the diffie-hellman group exchange. * <p> * Depending on which constructor is used, either the use of a * <code>SSH_MSG_KEX_DH_GEX_REQUEST</code> or * <code>SSH_MSG_KEX_DH_GEX_REQUEST_OLD</code> c...
Java
package com.trilead.ssh2; /** * A <code>ConnectionMonitor</code> is used to get notified when the underlying * socket of a connection is closed. * * @author Christian Plattner, plattner@trilead.com * @version $Id: ConnectionMonitor.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public interface Con...
Java
package com.trilead.ssh2; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; /** * A very basic <code>SCPClient<...
Java
package com.trilead.ssh2; import java.io.IOException; /** * May be thrown upon connect() if a HTTP proxy is being used. * * @see Connection#connect() * @see Connection#setProxyData(ProxyData) * * @author Christian Plattner, plattner@trilead.com * @version $Id: HTTPProxyException.java,v 1.1 2007/10...
Java
package com.trilead.ssh2.sftp; /** * * SFTP Error Codes * * @author Christian Plattner, plattner@trilead.com * @version $Id: ErrorCodes.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ * */ public class ErrorCodes { public static final int SSH_FX_OK = 0; public static final int SSH_FX_EOF = 1; p...
Java
package com.trilead.ssh2.sftp; /** * * Values for the 'text-hint' field in the SFTP ATTRS data type. * * @author Christian Plattner, plattner@trilead.com * @version $Id: AttrTextHints.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ * */ public class AttrTextHints { /** * The server knows the fil...
Java
package com.trilead.ssh2.sftp; /** * * SFTP Attribute Bits for the "attrib-bits" and "attrib-bits-valid" fields of * the SFTP ATTR data type. * <p> * Yes, these are the "attrib-bits", even though they have "_FLAGS_" in their * name. Don't ask - I did not invent it. * <p> * "<i>These fields, taken to...
Java
package com.trilead.ssh2.sftp; /** * * Types for the 'type' field in the SFTP ATTRS data type. * <p> * "<i>On a POSIX system, these values would be derived from the mode field of * the stat structure. SPECIAL should be used for files that are of a known type * which cannot be expressed in the protocol. ...
Java
package com.trilead.ssh2.sftp; /** * * Attribute Flags. The 'valid-attribute-flags' field in the SFTP ATTRS data * type specifies which of the fields are actually present. * * @author Christian Plattner, plattner@trilead.com * @version $Id: AttribFlags.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ * ...
Java
package com.trilead.ssh2.sftp; /** * * SFTP Open Flags. * * The following table is provided to assist in mapping POSIX semantics to * equivalent SFTP file open parameters: * <p> * TODO: This comment should be moved to the open method. * <p> * <ul> * <li>O_RDONLY * <ul> * <li>desired-access ...
Java
package com.trilead.ssh2.sftp; /** * * SFTP Paket Types * * @author Christian Plattner, plattner@trilead.com * @version $Id: Packet.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ * */ public class Packet { public static final int SSH_FXP_INIT = 1; public static final int SSH_FXP_VERSION = 2; p...
Java
package com.trilead.ssh2.sftp; /** * * Permissions for the 'permissions' field in the SFTP ATTRS data type. * <p> * "<i>The 'permissions' field contains a bit mask specifying file permissions. * These permissions correspond to the st_mode field of the stat structure * defined by POSIX [IEEE.1003-1.1996]...
Java
/* * 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...
Java
/* * 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...
Java
/* * 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...
Java
/* * 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...
Java
package com.trilead.ssh2; /** * A <code>SFTPv3FileAttributes</code> object represents detail information * about a file on the server. Not all fields may/must be present. * * @author Christian Plattner, plattner@trilead.com * @version $Id: SFTPv3FileAttributes.java,v 1.2 2008/04/01 12:38:09 cplattne * ...
Java
package com.trilead.ssh2; /** * A <code>SFTPv3FileHandle</code>. * * @author Christian Plattner, plattner@trilead.com * @version $Id: SFTPv3FileHandle.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class SFTPv3FileHandle { final SFTPv3Client client; final byte[] fileHandle; boolean isClo...
Java
package com.trilead.ssh2; import java.util.Map; /** * AuthAgentCallback. * * @author Kenny Root * @version $Id$ */ public interface AuthAgentCallback { /** * @param key * A <code>RSAPrivateKey</code> or <code>DSAPrivateKey</code> * containing a DSA or RSA private key of the user in...
Java