code
stringlengths
3
1.18M
language
stringclasses
1 value
package com.trilead.ssh2.transport; import java.math.BigInteger; import com.trilead.ssh2.DHGexParameters; import com.trilead.ssh2.crypto.dh.DhExchange; import com.trilead.ssh2.crypto.dh.DhGroupExchange; import com.trilead.ssh2.packets.PacketKexInit; /** * KexState. * * @author Christian Plattner, p...
Java
package com.trilead.ssh2; /** * In most cases you probably do not need the information contained in here. * * @author Christian Plattner, plattner@trilead.com * @version $Id: ConnectionInfo.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class ConnectionInfo { /** * The used key exchange ...
Java
package com.trilead.ssh2.crypto.cipher; /* This file was shamelessly taken from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any perso...
Java
package com.trilead.ssh2.crypto.cipher; import java.io.IOException; import java.io.InputStream; /** * CipherInputStream. * * @author Christian Plattner, plattner@trilead.com * @version $Id: CipherInputStream.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CipherInputStream { BlockC...
Java
package com.trilead.ssh2.crypto.cipher; /** * CBCMode. * * @author Christian Plattner, plattner@trilead.com * @version $Id: CBCMode.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CBCMode implements BlockCipher { BlockCipher tc; int blockSize; boolean doEncrypt; byte[] cbc_vector...
Java
package com.trilead.ssh2.crypto.cipher; /* This file is based on the 3DES implementation from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge...
Java
package com.trilead.ssh2.crypto.cipher; /** * This is CTR mode as described in draft-ietf-secsh-newmodes-XY.txt * * @author Christian Plattner, plattner@trilead.com * @version $Id: CTRMode.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CTRMode implements BlockCipher { byte[] X; byte...
Java
package com.trilead.ssh2.crypto.cipher; import java.io.IOException; import java.io.OutputStream; /** * CipherOutputStream. * * @author Christian Plattner, plattner@trilead.com * @version $Id: CipherOutputStream.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CipherOutputStream { Bl...
Java
package com.trilead.ssh2.crypto.cipher; import java.util.Vector; /** * BlockCipherFactory. * * @author Christian Plattner, plattner@trilead.com * @version $Id: BlockCipherFactory.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $ */ public class BlockCipherFactory { static class CipherEntry { Str...
Java
package com.trilead.ssh2.crypto.cipher; /** * BlockCipher. * * @author Christian Plattner, plattner@trilead.com * @version $Id: BlockCipher.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public interface BlockCipher { public void init(boolean forEncryption, byte[] key); public int getBlockSize()...
Java
package com.trilead.ssh2.crypto.cipher; /* This file was shamelessly taken (and modified) from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charg...
Java
package com.trilead.ssh2.crypto.cipher; /* This file was shamelessly taken from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any perso...
Java
package com.trilead.ssh2.crypto.cipher; /** * NullCipher. * * @author Christian Plattner, plattner@trilead.com * @version $Id: NullCipher.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class NullCipher implements BlockCipher { private int blockSize = 8; public NullCipher() { } pu...
Java
package com.trilead.ssh2.crypto.digest; import java.math.BigInteger; /** * HashForSSH2Types. * * @author Christian Plattner, plattner@trilead.com * @version $Id: HashForSSH2Types.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public class HashForSSH2Types { Digest md; public HashForSSH2Type...
Java
package com.trilead.ssh2.crypto.digest; /** * MAC. * * @author Christian Plattner, plattner@trilead.com * @version $Id: MAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public final class MAC { Digest mac; int size; public final static String[] getMacList() { /* Higher Priority First ...
Java
package com.trilead.ssh2.crypto.digest; /** * HMAC. * * @author Christian Plattner, plattner@trilead.com * @version $Id: HMAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public final class HMAC implements Digest { Digest md; byte[] k_xor_ipad; byte[] k_xor_opad; byte[] tmp; int size...
Java
package com.trilead.ssh2.crypto.digest; /** * MD5. Based on the example code in RFC 1321. Optimized (...a little). * * @author Christian Plattner, plattner@trilead.com * @version $Id: MD5.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ /* * The following disclaimer has been copied from RFC 1321: ...
Java
package com.trilead.ssh2.crypto.digest; /** * SHA-1 implementation based on FIPS PUB 180-1. * Highly optimized. * <p> * (http://www.itl.nist.gov/fipspubs/fip180-1.htm) * * @author Christian Plattner, plattner@trilead.com * @version $Id: SHA1.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public...
Java
package com.trilead.ssh2.crypto.digest; /** * Digest. * * @author Christian Plattner, plattner@trilead.com * @version $Id: Digest.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public interface Digest { public int getDigestLength(); public void update(byte b); public void update(byte[] b);...
Java
package com.trilead.ssh2.crypto; import java.io.CharArrayWriter; import java.io.IOException; /** * Basic Base64 Support. * * @author Christian Plattner, plattner@trilead.com * @version $Id: Base64.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class Base64 { static final char[] alphabet...
Java
package com.trilead.ssh2.crypto; import java.io.IOException; import java.math.BigInteger; /** * SimpleDERReader. * * @author Christian Plattner, plattner@trilead.com * @version $Id: SimpleDERReader.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class SimpleDERReader { byte[] buffer; i...
Java
package com.trilead.ssh2.crypto; import java.io.BufferedReader; import java.io.CharArrayReader; import java.io.IOException; import java.math.BigInteger; import com.trilead.ssh2.crypto.cipher.AES; import com.trilead.ssh2.crypto.cipher.BlockCipher; import com.trilead.ssh2.crypto.cipher.CBCMode; import com.t...
Java
package com.trilead.ssh2.crypto; import com.trilead.ssh2.compression.CompressionFactory; import com.trilead.ssh2.crypto.cipher.BlockCipherFactory; import com.trilead.ssh2.crypto.digest.MAC; import com.trilead.ssh2.transport.KexManager; /** * CryptoWishList. * * @author Christian Plattner, plattner@t...
Java
package com.trilead.ssh2.crypto.dh; import java.math.BigInteger; import java.security.SecureRandom; import com.trilead.ssh2.DHGexParameters; import com.trilead.ssh2.crypto.digest.HashForSSH2Types; /** * DhGroupExchange. * * @author Christian Plattner, plattner@trilead.com * @version $Id: DhGroup...
Java
package com.trilead.ssh2.crypto.dh; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.security.SecureRandom; import com.trilead.ssh2.crypto.digest.HashForSSH2Types; import com.trilead.ssh2.log.Logger; /** * DhExchange. * * @author Christian Plattner, plattner@t...
Java
package com.trilead.ssh2.crypto; /** * Parsed PEM structure. * * @author Christian Plattner, plattner@trilead.com * @version $Id: PEMStructure.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class PEMStructure { public int pemType; String dekInfo[]; String procType[]; public byte[] d...
Java
package com.trilead.ssh2.crypto; import java.math.BigInteger; import com.trilead.ssh2.crypto.digest.HashForSSH2Types; /** * Establishes key material for iv/key/mac (both directions). * * @author Christian Plattner, plattner@trilead.com * @version $Id: KeyMaterial.java,v 1.1 2007/10/15 12:49:56 cpl...
Java
package com.trilead.ssh2; /** * A <code>SFTPv3DirectoryEntry</code> as returned by {@link SFTPv3Client#ls(String)}. * * @author Christian Plattner, plattner@trilead.com * @version $Id: SFTPv3DirectoryEntry.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class SFTPv3DirectoryEntry { /** ...
Java
package com.trilead.ssh2.util; import java.io.PrintWriter; import java.io.StringWriter; import java.util.Collections; import java.util.LinkedList; import com.trilead.ssh2.log.Logger; /** * TimeoutService (beta). Here you can register a timeout. * <p> * Implemented having large scale programs in mi...
Java
package com.trilead.ssh2.util; /** * Tokenizer. Why? Because StringTokenizer is not available in J2ME. * * @author Christian Plattner, plattner@trilead.com * @version $Id: Tokenizer.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public class Tokenizer { /** * Exists because StringTokenizer is n...
Java
/** * */ package com.nullwire.trace; import java.lang.ref.WeakReference; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.util.Log; /** * @author Kenny Root * */ public class ExceptionClickListener implements OnClickLi...
Java
package com.nullwire.trace; public class G { // This must be set by the application - it used to automatically // transmit exceptions to the trace server public static String FILES_PATH = null; public static String APP_PACKAGE = "unknown"; public static String APP_VERSION = "unknown"; public static String APP_DE...
Java
package com.nullwire.trace; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; import java.lang.Thread.UncaughtExceptionHandler; import java.util.Random; import android.util.Log; public class DefaultExceptionHandler implements Unc...
Java
package com.nullwire.trace; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.List; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEn...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain th...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2001 Lapo Luchini. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
Java
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2001 Lapo Luchini. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
Java
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
Java
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
Java
package org.moyakarta.server; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.URL; import javax.servlet.GenericServlet; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream;...
Java
package org.moyakarta.server; import java.io.IOException; import javax.servlet.GenericServlet; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; public class MapsServlet extends GenericServlet { /** ...
Java
package org.moyakarta.server; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; im...
Java
package org.moyakarta.rest; import java.util.Collection; import java.util.Map; import java.util.Random; import java.util.concurrent.ConcurrentHashMap; public class PlaceStorage { public synchronized String generateId() { String id = generateEncodedId(); while (getPlace(id) != null) { id = gen...
Java
package org.moyakarta.rest; public class Place { private String id; private String link; private String title; private double lat; private double lon; private int z; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getLin...
Java
package org.moyakarta.rest; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; @Provider public class PlaceNotFoundExceptionMapper implements ExceptionMapper<PlaceNotFoundException> { public Response toResponse(PlaceNotFoundException exception) { re...
Java
package org.moyakarta.rest; import java.util.HashSet; import java.util.Set; import javax.ws.rs.core.Application; public class PlaceApplication extends Application { @Override public Set<Class<?>> getClasses() { Set<Class<?>> cls = new HashSet<Class<?>>(1); cls.add(PlaceService.class); ret...
Java
package org.moyakarta.rest; import java.net.URI; import java.util.Collection; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.Response; import java...
Java
package org.moyakarta.rest; @SuppressWarnings("serial") public class PlaceNotFoundException extends Exception { public PlaceNotFoundException(String id) { super("Place with id " + id + " not found."); } }
Java
package org.moyakarta.rest; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; public class PlaceServiceBootstrap implements ServletContextListener { static final String PLACE_STORAGE_NAME = PlaceStorage.class.getName(); public void cont...
Java
package org.moyakarta.server; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.URL; import javax.servlet.GenericServlet; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream;...
Java
package org.moyakarta.server; import java.io.IOException; import javax.servlet.GenericServlet; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; public class MapsServlet extends GenericServlet { /** ...
Java
package org.moyakarta.server; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; im...
Java
package org.moyakarta.rest; import java.util.Collection; import java.util.Map; import java.util.Random; import java.util.concurrent.ConcurrentHashMap; public class PlaceStorage { public synchronized String generateId() { String id = generateEncodedId(); while (getPlace(id) != null) { id = gen...
Java
package org.moyakarta.rest; public class Place { private String id; private String link; private String title; private double lat; private double lon; private int z; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getLin...
Java
package org.moyakarta.rest; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; @Provider public class PlaceNotFoundExceptionMapper implements ExceptionMapper<PlaceNotFoundException> { public Response toResponse(PlaceNotFoundException exception) { re...
Java
package org.moyakarta.rest; import java.util.HashSet; import java.util.Set; import javax.ws.rs.core.Application; public class PlaceApplication extends Application { @Override public Set<Class<?>> getClasses() { Set<Class<?>> cls = new HashSet<Class<?>>(1); cls.add(PlaceService.class); ret...
Java
package org.moyakarta.rest; import java.net.URI; import java.util.Collection; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.Response; import java...
Java
package org.moyakarta.rest; @SuppressWarnings("serial") public class PlaceNotFoundException extends Exception { public PlaceNotFoundException(String id) { super("Place with id " + id + " not found."); } }
Java
package org.moyakarta.rest; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; public class PlaceServiceBootstrap implements ServletContextListener { static final String PLACE_STORAGE_NAME = PlaceStorage.class.getName(); public void cont...
Java
package model.geometry; /** * Created by andreas on 19.04.14. */ public class HorizontalDrawer extends AbstractDrawer { }
Java
package model.geometry; /** * Created by andreas on 19.04.14. */ public class AbstractDrawer { public String drawAsterix(int n) { return drawRecursive(n, "*", ""); } public String drawWhitespaces(int n) { if (n < 0) { throw new IllegalArgumentException("can't draw " + n + " wh...
Java
package model.geometry; /** * Created by andreas on 19.04.14. */ public class TriangleDrawer extends AbstractDrawer { private HorizontalDrawer horizontalDrawer = new HorizontalDrawer(); public String drawRightTriangle(int size) { return drawTriangleRecursiv(0, size, ""); } private String d...
Java
package model.geometry; /** * Created by andreas on 19.04.14. */ public class VerticalDrawer extends AbstractDrawer { public String drawAsterixVertical(int size) { return drawAsterixVertical(0, size, ""); } private String drawAsterixVertical(int i, int size, String accumulator) { if (i ...
Java
package model.geometry; /** * Created by andreas on 20.04.14. */ public class DiamondDrawer extends AbstractDrawer { public String drawIsoTriangle(int lines) { return drawIsoTriangleRecursive(0, lines, "") + drawMiddleLine(lines, null); } public String drawDiamond(int lines) { return dr...
Java
package model.fizzbuzz; /** * Created by andreas on 20.04.14. */ public class FizzGenerator { public String generateString(int input) { if (input % 15 == 0) { return "FizzBuzz"; } if (input % 3 == 0) { return "Fizz"; } if (input % 5 == 0) { ...
Java
package model.primefactor; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; /** * Created by andreas on 20.04.14. */ public class PrimefactorGenerator { public List<Integer> generatePrimefactors(int i) { if (i == 1) { return new Array...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.math.BigInteger; import javax.persistence.Basic; imp...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.math.BigDecimal; import java.util.Collection; import...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.math.BigDecimal; import javax.persistence.Column; im...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; ...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.util.Collection; import javax.persistence.Basic; imp...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.util.Collection; import javax.persistence.Basic; imp...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; ...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity;...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.math.BigDecimal; import java.util.Collection; import...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.domain; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.common; /** * * @author Tobe */ import javax.persistence.EntityManagerFactory; import javax.pers...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.common; /** * * @author Tobe */ import java.io.File; import java.io.IOException; import javax.f...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.common; import java.io.Serializable; import javax.ejb.Singleton; import javax.inject.Named; /** *...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import com.einstein.domain.Cliente; import java.io.Serializable; import java.util.ArrayList; im...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import javax.ejb.Stateless; import javax.ejb.LocalBean; /** * * @author martin */ @Stateless @LocalBean public class NewSessionBean { public void businessMethod() { ...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import com.einstein.domain.Cliente; import java.util.ArrayList; import javax.ejb.EJB; import javax....
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import java.io.IOException; import java.io.PrintWriter; import javax.inject.Inject; import javax.se...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.einstein.job; import com.mycompany.Sesion; import java.text.DateFormat; import java.text.SimpleDateFormat; imp...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import java.io.Serializable; import java.text.DateFormat; import java.text.SimpleDateFormat; import...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import com.einstein.common.EMF; import com.einstein.common.Navegacion; import com.einstein.domain.Cl...
Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany; import com.einstein.common.EMF; import com.einstein.common.Navegacion; import com.einstein.domain.Cl...
Java
/*************************************** * * Android Bluetooth Oscilloscope * yus - projectproto.blogspot.com * September 2010 * ***************************************/ package org.projectproto.yuscope; import android.graphics.Canvas; import android.view.SurfaceHolder; public class WaveformPlotThread exten...
Java
/*************************************** * * Android Bluetooth Oscilloscope * yus - projectproto.blogspot.com * September 2010 * ***************************************/ package org.projectproto.yuscope; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.Bluetoot...
Java
/*************************************** * * Android Bluetooth Oscilloscope * yus - projectproto.blogspot.com * September 2010 * ***************************************/ package org.projectproto.yuscope; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.UUI...
Java
/* * Copyright (C) 2009 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...
Java