text
stringlengths
3
1.18M
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.KhachHangDAO; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotatio...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.KhachHangDAO; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotatio...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.KhachHangDAO; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotatio...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.LoaiSanPhamDAO; import hibernate.model.dao.SanPhamDAO; import hibernate.pojo.Loaisanpham; import hibernate.pojo.Sanpham; import java.io.IOException; import java.io.PrintWri...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.KhachHangDAO; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotatio...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.SanPhamDAO; import hibernate.pojo.Sanpham; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.We...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; //<editor-fold defaultstate="collapsed" desc="Import"> import hibernate.model.dao.ChiTietDonDatHangDAO; import hibernate.model.dao.CodeSanPhamDAO; import hibernate.model.dao.DonDatHangDAO; import hib...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.ChiTietDonDatHangDAO; import hibernate.pojo.Chitietdondathang; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import java.util.Li...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.ChiTietDonDatHangDAO; import hibernate.pojo.Chitietdondathang; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import java.util.Lis...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.KhachHangDAO; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import java.text.ParseException; import java.text.SimpleDateFormat; i...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.BinhLuanDAO; import hibernate.model.dao.SanPhamDAO; import hibernate.pojo.Binhluan; import hibernate.pojo.Khachhang; import hibernate.pojo.Sanpham; import java.io.IOExcepti...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.ChiTietDonDatHangDAO; import hibernate.pojo.Chitietdondathang; import hibernate.pojo.Khachhang; import java.io.IOException; import java.io.PrintWriter; import java.util.Lis...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller; import hibernate.model.dao.LoaiSanPhamDAO; import hibernate.pojo.Sanpham; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import ...
package br.com.hectordufau.rpgiiidetmobile; public class Personagem { private String id; private String nome; private int pontos; private int forca; private int habilidade; private int resistencia; private int armadura; private int poderdefogo; private int pontosdevida; private int pontosdem...
package br.com.hectordufau.rpgiiidetmobile; import java.util.ArrayList; import android.app.Activity; import android.app.AlertDialog; import android.app.ListActivity; import android.content.DialogInterface; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; publi...
package br.com.hectordufau.rpgiiidetmobile; import java.util.ArrayList; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.util.Log; public class Personage...
package br.com.hectordufau.rpgiiidetmobile; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import br.com.hectordufau.rpgiiidetmobile.Persona...
package br.com.hectordufau.rpgiiidetmobile; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class OpenDbHelper extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 1; private String createStatement = "...
package br.com.hectordufau.rpgiiidetmobile; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.util.Log; import android.view.Menu; public class MainActivity extends Activity { private static String TAG = MainActivity.class.getName(); private static long SLEEP_TIME ...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
/* * Copyright (C) 2014 Benny Bobaganoosh * * 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 agre...
package com.photo.service; import com.photo.dao.UserDao; import com.photo.dao.domain.User; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; import java.util.List; /** * Created by Int...
package com.photo.commons; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.lang.StringUtils; import org.springframework.core.io.Resource; import java.sql.*; import java.io.File; import java.io.UnsupportedEncodingException; import java.util.Lis...
package com.photo.commons; import javax.servlet.*; public class EncodingFilter implements Filter { public void init(FilterConfig cong) { // do nothing } public void doFilter(ServletRequest srequest, ServletResponse sresponse, FilterChain chain) { try{ //编码 srequest.setChara...
package com.photo.dao.ibatis; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import org.springframework.dao.DataAccessException; import com.photo.dao.UserDao; import com.photo.dao.domain.User; import java.util.List; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 2...
package com.photo.dao.hibernate; import org.springframework.orm.hibernate.support.HibernateDaoSupport; import com.photo.dao.domain.User; import com.photo.dao.UserDao; import java.util.List; import net.sf.hibernate.Session; import net.sf.hibernate.Query; import net.sf.hibernate.Transaction; import net.sf.h...
package com.photo.dao.domain; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.lang.builder.ToStringStyle; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.bu...
package com.photo.dao.domain; public class User extends BaseObject { Integer id; String username; String password; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getUsername() { return userna...
package com.photo.dao; import com.photo.dao.domain.User; import org.springframework.dao.DataAccessException; import java.util.List; import net.sf.hibernate.HibernateException; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 2008-8-4 * Time: 15:04:53 * To change this template use Fil...
package com.photo.task; import com.photo.test.TestBean; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.TimerTask; public class EmailReportTask extends TimerTask { Log log= LogFactory.getLog(EmailReportTask.class); public EmailReportTask() { ...
package com.photo.task; import com.photo.test.TestBean; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.scheduling.quartz.QuartzJobBean; import org.quartz.JobExecutionContext; import java.util.TimerTask; public class EmailReportTask2 extends Q...
package com.photo.action; import com.opensymphony.xwork.Action; import com.photo.test.TestBean; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 2008-8-5 * Time: 13:18:14 * To change this template use File | Settings | File Templates. */ public class HelloWorldAction implements Action {...
package com.photo.action; import com.opensymphony.xwork.ActionSupport; import com.opensymphony.xwork.ValidationAware; import com.photo.dao.domain.User; import com.photo.dao.UserDao; import com.photo.service.UserService; import org.apache.commons.io.FileUtils; import org.apache.commons.lang.StringUtils; import...
package foundation.data; import java.sql.SQLException; import java.util.List; import android.database.sqlite.SQLiteDatabase; import com.activity.exg4pcd.MainActivity; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.dao.DaoManager; import com.j256.ormlite.dao.GenericRawResults; import com.j256.orm...
package foundation.data; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.List; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.j256.ormlite.android.apptools.OrmLiteSqliteOpe...
package foundation.data; import java.sql.SQLException; import java.util.List; import com.j256.ormlite.stmt.PreparedQuery; import com.j256.ormlite.stmt.QueryBuilder; public interface IDataContext { // ���� public abstract <T, ID> void add(T item, Class<T> dataClass, Class<ID> idClass) throws SQLExce...
package domain.businessService.cardinfo; import java.sql.SQLException; import domain.businessEntity.cardinfo.CardInfo; import foundation.data.DataContext; import foundation.data.IDataContext; public class CardService implements ICardService { //调试用字符串 private static String Tag="CardinfoService"; /...
package domain.businessService.cardinfo; import domain.businessEntity.cardinfo.CardInfo; public interface ICardService { public CardInfo getCardInfo(int cardID); //获得名片信息方法 public void saveMyCardInfo(CardInfo mycard); //保存我的名片信息 public void updateMyCardInfo(CardInfo mycard); //更新我的名片信息 }
package domain.businessEntity.cardinfo; import com.j256.ormlite.field.*; import com.j256.ormlite.table.DatabaseTable; @DatabaseTable(tableName = "T_Card") public class CardInfo { public CardInfo(int id,String na,String se,String ph,String em,String we,String qq){ this.setCardID(id); this.setName(na); ...
/* * Copyright 2012 ZXing authors * * 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 2012 ZXing authors * * 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 2009 ZXing authors * * 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 2009 ZXing authors * * 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.ui.exg4pcd; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class CardListActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_card_list); ...
package com.ui.exg4pcd; import com.ui.exg4pcd.R; import android.os.Bundle; import android.app.Activity; import android.app.TabActivity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.TabHost; import android...
package com.activity.exg4pcd; import com.ui.exg4pcd.R; import domain.businessEntity.cardinfo.CardInfo; import domain.businessService.cardinfo.*; import foundation.data.DataHelper; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.vi...
package com.activity.exg4pcd; import com.ui.exg4pcd.R; import com.ui.exg4pcd.TablActivity; import domain.businessEntity.cardinfo.CardInfo; import domain.businessService.cardinfo.CardService; import domain.businessService.cardinfo.ICardService; import foundation.data.DataHelper; import android.os.Bundle; imp...
package com.activity.exg4pcd; import com.google.zxing.integration.android.IntentIntegrator; import com.ui.exg4pcd.R; import domain.businessEntity.cardinfo.CardInfo; import domain.businessService.cardinfo.CardService; import domain.businessService.cardinfo.ICardService; import android.os.Bundle; import androi...
package tool.data; import java.io.File; import java.io.FileFilter; import java.io.FileOutputStream; import java.io.IOException; import java.net.URL; import java.net.URLDecoder; import java.util.Enumeration; import java.util.LinkedHashSet; import java.util.Set; import android.os.Environment; import com....
/** Automatically generated file. DO NOT MODIFY */ package com.ui.exg4pcd; public final class BuildConfig { public final static boolean DEBUG = true; }
/** * Controlar o envio de dados por 2 ou mais clientes de modo a não enviar dados repetidos */ import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; import java.net.UnknownHostException; public class CheckRepeated extends Thread{ pri...
/** * Class para iniciar aplicação */ public class Main { public static void main(String[] args) throws Exception{ P2P myP2P = new P2P(); myP2P.start(); } }
/** * Class para envio de search e get */ import java.io.*; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; import java.security.MessageDigest; import java.util.ArrayList; import java.util.HashMap; import java.util.Random; public class P2P { private HashM...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * Interface.java * * Created on 24/Mar/2011, 14:37:33 */ /** * * @author ei08124 */ public class Interface extends javax.swing.JFrame { /** Creates new form Interface */ public Interface() { ...
/** * Class que representa a thread de controlo * */ import java.io.IOException; import java.net.*; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; public class InfoReceive extends Thread{ String name; private Integer dataPort, controlPort; private InetAddress addr...
/** * Class para envio de chunks */ import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; import java.util.ArrayList; import java.util.HashMap; import java.util.Random; public class SendChunks extends Thread{ private ArrayList<Int...
/** * Class para guardar nomes informações sobre ficheiros * */ public class FileInfo { private String sha; private String name; private String size; public FileInfo(String s, String n, String t){ sha=s; name=n; size=t; } public FileInfo(FileInfo obj){ sha=obj.getSha(); name=ob...
import java.io.FileInputStream; import java.security.MessageDigest; public class SHACheckSum{ public static void main(String[] args)throws Exception{ MessageDigest md = MessageDigest.getInstance("SHA-256"); FileInputStream fis = new FileInputStream("c:\tmp\file.pdf"); ...
/** * Class para recepção de chunks */ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; import java.net.SocketTimeoutException; import java.util.ArrayList; impor...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * NewJFrame.java * * Created on 25/Mar/2011, 13:47:07 */ /** * * @author ei08168 */ public class Bar extends javax.swing.JFrame { /** Creates new form NewJFrame */ public Bar() { initComponen...
package eecs.umich.threegtest; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.net.ConnectivityManager; import android.telephony.TelephonyManager; public class ConnectivityTester { //holds the threegtest t...