text
stringlengths
3
1.18M
package BinaryTree; import java.io.*; import java.util.*; class TreeTraversal { public static void main(String[] args) throws IOException { int value; Tree theTree = new Tree(); theTree.insert(42); theTree.insert(25); theTree.insert(65); theTree.insert(12); theTree.insert(37); theT...
package messClient; //Client that reads and displays information sent from a Server. import java.io.EOFException; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.InetAddress; import java.net.Socket; import java.awt.BorderLayout; import java.awt.event.Ac...
package messClient; //Test the MessClient class. import javax.swing.JFrame; public class MessClientTest { public static void main( String args[] ) { MessClient application; // declare client application // if no command line args if ( args.length == 0 ) application = new MessClient( "127.0.0.1" ); /...
package clientRMI; import java.math.BigDecimal; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import computeRMI.Compute; public class ComputePi { public static void main(String[] args) { if (System.getSecurityManager() == null) { System.setSecurityManager(new SecurityMa...
package clientRMI; import java.io.Serializable; import java.math.BigDecimal; import computeRMI.Task; public class Pi implements Task<BigDecimal>, Serializable { private static final long serialVersionUID = 227L; private static final BigDecimal FOUR = BigDecimal.valueOf(4); private static final int rou...
package EchoClient; //EchoClient that sends and receives packets to/from a server. import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt....
package EchoClient; import javax.swing.JFrame; public class EchoClientTest { public static void main( String args[] ) { EchoClient application = new EchoClient(); // create client application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); application.waitForPackets(); // run client application } // end m...
package sorthingMethods; import java.util.Scanner; public class Sorthing { /** * @param args */ public static void main(String[] args) { int[] tal = new int[10]; Scanner scan = new Scanner(System.in); for (int i =0; i <10; i++){ System.out.println("skriv " + (i+1) + ". tal"); int ...
public interface BagInterface<T> { public boolean add(T newEntry); public T remove(T anEntry); public boolean contains(T anEntry); public T display(T anEntry); }
import java.util.ArrayList; import java.util.HashSet; import java.util.Set; public class Ovelser { /** * @param args */ public static void main(String[] args) { alist(); set(); } public static void alist(){ ArrayList<Integer> a = new ArrayList<Integer>(); for (int i = 0; i < 10; i++...
public @interface ghj { }
package arv; public class Media { protected String title; protected int length; public static Media m; public Media(String title, int length){ this.title = title; this.length = length; } //Singleton pattern public Media(){ } // public static Media getMediaObject(){ // if(m == null)...
package arv; public class Cd extends Media { private String artist; public Cd(String title, int length, String artist){ super(title, length); this.artist = artist; } @Override public void run(){ System.out.println("now playing cd " + title + "by artist " + artist); } }
package arv; public class Dvd extends Media { private String mainActor; private String director; public Dvd(String title, int length, String mainActor, String director){ this.length = length; this.title = title; this.mainActor = mainActor; this.director = director; } public String toString()...
package arv; import java.util.ArrayList; public class Run { /** * @param args */ public static void main(String[] args) { Cd cd1 = new Cd("Bamses billedbog", 3600, "Bamse himself"); Dvd dvd1 = new Dvd("Teltubbies", 7200, "Dibsy", "TinkyWinky"); //System.out.println(dvd1.toString()); ...
package messServer; //Set up a MessServer that will receive a connection from a client, send //a string to the client, and close the connection. import java.io.EOFException; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.ServerSocket; import java.net.S...
package messServer; //Test the Server application. import javax.swing.JFrame; public class MessServerTest { public static void main( String args[] ) { MessServer application = new MessServer(); // create server application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); application.runServer(); // run ser...
package EchoServer; //Server that receives and sends packets from/to a client. import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketException; import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTextA...
package EchoServer; //Tests the EchoServer class. import javax.swing.JFrame; public class EchoServerTest { public static void main( String args[] ) { EchoServer application = new EchoServer(); // create server application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); application.waitForPackets(); // run...
package computeRMI; import java.rmi.Remote; import java.rmi.RemoteException; public interface Compute extends Remote { <T> T executeTask(Task<T> t) throws RemoteException; }
package computeRMI; public interface Task<T> { T execute(); }
package Arne; import java.util.Scanner; public class Input { /** * @param args */ public static void main(String[] args) { Scanner s = new Scanner(System.in); while (true) { System.out.println("skriv et tal"); int tal = s.nextInt(); System.out.println("Indtastet tal: " + tal)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.io.File; /** * * @author Z11 */ public class DiskDetails { public long getTotalSpace(String fileName) { File file=new File(fileNa...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; /** * * @author Erez */ public class Variables { private String filePath; private static Variables instance = null; private Variables() { // Exists only to defeat instantiation. ...
package Source; import java.io.*; import java.util.concurrent.Callable; import java.util.logging.Level; import java.util.logging.Logger; import java.util.zip.*; import javax.swing.JLabel; import javax.swing.JProgressBar; import javax.swing.filechooser.FileSystemView; import org.apache.commons.io.FileUtils; ...
package Source; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.concurrent.Callable; impor...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.io.File; import java.io.IOException; import java.util.zip.ZipException; import java.util.zip.ZipFile; /** * * @author Z11 */ public class ValidZip { ZipFile zipFile; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.text.SimpleDateFormat; import java.util.Calendar; /** * * @author Z11 */ public class DateAndTime { public static final String DATE_FORMAT="dd-MM-yyyy HH-mm-ss"; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; /** * /* public class SearchFiles { String root; String[] extensions; public SearchFiles(String root, String[] extensions) { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.io.File; /** * * @author Z11 */ public class DeleteFiles implements Runnable{ private String fileName; public void run() { File file=new File(...
package Source; /* Some SMTP servers require a username and password authentication before you can use their Server for Sending mail. This is most common with couple of ISP's who provide SMTP Address to Send Mail. This Program gives any example on how to do SMTP Authentication (User and Password verification)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * Main.java * * Created on Mar 11, 2012, 9:59:13 AM */ package GUI; import java.awt.ComponentOrientation; import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; impo...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.io.File; /** * * @author Z11 */ public class DiskDetails { public long getTotalSpace(String fileName) { File file=new File(fileNa...
package Source; import java.io.*; import java.util.zip.*; import javax.swing.filechooser.FileSystemView; public class ZipFiles { String fileName; public ZipFiles(String fileName) { this.fileName=fileName; ...
package Source; 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.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import jav...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.io.File; import java.io.IOException; import java.util.zip.ZipException; import java.util.zip.ZipFile; /** * * @author Z11 */ public class ValidZip { ZipFile zipFile; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.text.SimpleDateFormat; import java.util.Calendar; /** * * @author Z11 */ public class DateAndTime { public static final String DATE_FORMAT="dd-MM-yyyy HH-mm-ss"; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import org.apache.commons.io.FileUtils; import java.io.File; import java.util.Collection; import java.util.Iterator; /** * * @author Z11 */ public class SearchFiles { String root; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Source; import java.io.File; /** * * @author Z11 */ public class DeleteFiles { public DeleteFiles (String fileName){ File file=new ...
package Source; /* Some SMTP servers require a username and password authentication before you can use their Server for Sending mail. This is most common with couple of ISP's who provide SMTP Address to Send Mail. This Program gives any example on how to do SMTP Authentication (User and Password verification)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * Main.java * * Created on Mar 11, 2012, 9:59:13 AM */ package GUI; /** * * @author Erez */ public class Main extends javax.swing.JFrame { /** Creates new form Main */ public Main() { initCo...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.GianhangDAO; import POJO.Gianhang; import java.util.List; /** * * @author HIT */ public class GianhangBUS { private GianhangDAO ghDAO; /** *Rút trích danh sách tất cả gian hàn...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.*; import java.util.List; /** * * @author Mr Long */ public class LoaisanphamBUS { private LoaisanphamDAO lspDAO; public LoaisanphamDAO getLspDAO() { return lspD...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.ThamsoDAO; import POJO.Thamso; import java.util.List; /** * * @author nhlvu07db373 */ public class ThamsoBUS { private ThamsoDAO tsDAO; public Thamso laySoLuongSanPhamTrenTrang() { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.BinhluanDAO; import POJO.Binhluan; import java.util.List; /** * * @author nhlvu07db373 */ public class BinhluanBUS { private BinhluanDAO blDAO; /** * Lấy danh sách các bình luận...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.TinhtrangnguoidungDAO; import POJO.Tinhtrangnguoidung; import java.util.List; /** * * @author nhlvu07db373 */ public class TinhtrangnguoidungBUS { private TinhtrangnguoidungDAO ttndDAO; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.LoainguoidungDAO; import POJO.Loainguoidung; import java.util.List; /** * * @author nhlvu07db373 */ public class LoainguoidungBUS { private LoainguoidungDAO lndDAO; /** *Rút tr...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.NguoidungDAO; import POJO.Nguoidung; import java.util.List; /** * * @author nhlvu07db373 */ public class NguoidungBUS { private NguoidungDAO ndDAO; /** *Rút trích danh sách tất ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.TinhtrangdonhangDAO; import POJO.Tinhtrangdonhang; import java.util.List; /** * * @author nhlvu07db373 */ public class TinhtrangdonhangBUS { private TinhtrangdonhangDAO ttdhDAO; /** ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.ChitietbinhluanDAO; import POJO.Chitietbinhluan; import java.util.List; /** * * @author nhlvu07db373 */ public class ChitietbinhluanBUS { private ChitietbinhluanDAO ctblDAO; /** ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.SanphammoiDAO; import java.util.List; /** * * @author nhlvu07db373 */ public class SanphammoiBUS { private SanphammoiDAO spmDAO; /** * @return the spmDAO */ public San...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.GetIDDAO; /** * * @author nhlvu07db373 */ public class GetIDBUS { private GetIDDAO gIDAO; /** * @return the gIDAO */ public GetIDDAO getgIDAO() { return gIDAO; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.*; import POJO.Sanpham; import java.util.List; /** * * @author Mr Long */ public class SanphamBUS { private SanphamDAO spDAO; public SanphamDAO getSpDAO() { return spDAO; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.ChitietdonhangDAO; import POJO.Chitietdonhang; import java.util.List; /** * * @author nhlvu07db373 */ public class ChitietdonhangBUS { private ChitietdonhangDAO ctdhDAO; /** * L...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.BannickDAO; import POJO.Bannick; import java.util.Date; import java.util.List; /** * * @author nhlvu07db373 */ public class BannickBUS { private BannickDAO bnDAO; /** *Rút trích...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.HinhanhDAO; import POJO.Hinhanh; import java.util.List; /** * * @author nhlvu07db373 */ public class HinhanhBUS { private HinhanhDAO HaDAO; public HinhanhDAO getHaDAO() { re...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.KhuvucDAO; import POJO.Khuvuc; import java.util.List; /** * * @author nhlvu07db373 */ public class KhuvucBUS { private KhuvucDAO kvDAO; /** *Rút trích danh sách tất cả loại sả...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package BUS; import DAO.DonhangDAO; import POJO.Donhang; import java.util.List; /** * * @author nhlvu07db373 */ public class DonhangBUS { private DonhangDAO dhDAO; /** *Rút trích danh sách tất cả đơn h...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package UTIL; import org.hibernate.cfg.AnnotationConfiguration; import org.hibernate.SessionFactory; /** * Hibernate Utility class with a convenient method to get Session Factory object. * * @author nhlvu07db373 */ ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package CONTROLLER; import BUS.ChitietdonhangBUS; import BUS.DonhangBUS; import BUS.SanphammoiBUS; import BUS.TinhtrangdonhangBUS; import POJO.Donhang; import java.util.ArrayList; import java.util.HashMap; import java.u...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package CONTROLLER; import BUS.ChitietdonhangBUS; import BUS.DonhangBUS; import BUS.TinhtrangdonhangBUS; import POJO.Donhang; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package CONTROLLER; import POJO.*; import BUS.*; import java.io.File; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.Hashtable; import java.u...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package CONTROLLER; import BUS.*; import java.util.*; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.bind.annotation.*; import org.springframework.beans.factory.annotation.*; import ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package CONTROLLER; import POJO.*; import BUS.*; import java.util.*; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.bind.annotation.*; import org.springframework.beans.factory.annota...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package CONTROLLER; import POJO.*; import BUS.*; import java.util.Map; import java.util.HashMap; import java.util.List; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.bind.annotation...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Chitietdonhang; import POJO.Donhang; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; i...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Binhluan; import POJO.Chitietbinhluan; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions;...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Tinhtrangnguoidung; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springf...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Donhang; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.or...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Nguoidung; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Gianhang; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.o...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Hinhanh; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.or...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Binhluan; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.o...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Thamso; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.or...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Loainguoidung; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframew...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Sanphammoi; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.classic.Session; import org.springframework.orm.hibernate3.support.HibernateDaoS...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Khuvuc; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.orm...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Loaisanpham; import POJO.Tinhtrangdonhang; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restricti...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.*; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.orm.hib...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.*; import UTIL.HibernateUtil; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.springframework.orm.hibe...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Donhang; import UTIL.HibernateUtil; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.classic.Session; import org.springframework.orm.hibernate3.support.HibernateDa...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import POJO.Bannick; import POJO.Gianhang; import UTIL.HibernateUtil; import java.util.Date; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterio...
/* * Copyright (C) 2009 Android Shuffle 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...
/* * Copyright (C) 2009 Android Shuffle 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...
package org.dodgybits.shuffle.android.synchronisation.tracks.service; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.preference.model.Preferences; import org.dodgybits.shuffle.android.preference.view.Progress; import org...
package org.dodgybits.shuffle.android.synchronisation.tracks.ssl; import java.io.IOException; import java.net.Socket; import java.net.UnknownHostException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; ...
/* * ==================================================================== * 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 ...
/* * ==================================================================== * 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 ...
/* * ==================================================================== * 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 ...
package org.dodgybits.shuffle.android.synchronisation.tracks; import org.apache.http.StatusLine; public class WebResult { private String mContent; private StatusLine mStatus; public WebResult(StatusLine status, String content) { mStatus = status; mContent = content; } public String getCo...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.util.LinkedList; import java.util.Map; import org.apache.http.HttpStatus; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.ac...
package org.dodgybits.shuffle.android.synchronisation.tracks; import org.dodgybits.shuffle.android.preference.view.Progress; /** * Items that can receive updates about synchronization progress * * @author Morten Nielsen */ public interface SyncProgressListener { void progressUpdate(Progress progress); }
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URI; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpHos...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.util.Map; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.synchronisation.tracks.model.TracksEntity; public class TracksEntities<E extends TracksEntity> { private Map<Id, E> mEntities; ...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.IOException; import java.io.StringWriter; import java.util.Map; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.EntityBuilder; impor...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.IOException; import java.io.StringWriter; import java.util.Map; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.Context; import org....
package org.dodgybits.shuffle.android.synchronisation.tracks; @SuppressWarnings("serial") public class ApiException extends Exception { public ApiException(String reason) { super(reason); } public ApiException(String reason, Exception e) { super(reason, e); } }
package org.dodgybits.shuffle.android.synchronisation.tracks; import static org.dodgybits.shuffle.android.core.util.Constants.cFlurryTracksSyncCompletedEvent; import static org.dodgybits.shuffle.android.core.util.Constants.cFlurryTracksSyncError; import static org.dodgybits.shuffle.android.core.util.Constants.cFlurryT...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.apache.http.HttpStatus; import org.apache.http.StatusLine; import org.dodgybits.shuffle.android.core.model.EntityBuilder; import org.dodgybits.shuffle.android.core.mode...
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; public class ParseResult<T> { private boolean mSuccess; private T mResult; public ParseResult(T result, boolean success) { mSuccess = success; mResult = result; } public ParseResult() { mSuccess = false; mResult = null;...