text
stringlengths
3
1.18M
/* * Copyright (c) 2009-2012 Panxiaobo * * 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 applicab...
package com.googlecode.dex2jar.reader.io; import java.io.IOException; import java.io.OutputStream; public class LeDataOut implements DataOut { public LeDataOut(OutputStream os) { super(); this.os = os; } private OutputStream os; @Override public void writeByte(int...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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 applicab...
package com.googlecode.dex2jar.reader.io; import java.io.IOException; public interface DataOut { void writeBytes(byte[] bs) throws IOException; void writeByte(int b) throws IOException; void writeInt(int i) throws IOException; void writeShort(int i) throws IOException; }
/* * Copyright (c) 2009-2012 Panxiaobo * * 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 applicab...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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 applicab...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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 applicab...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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...
/* * Copyright (c) 2009-2012 Panxiaobo * * 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...
/* * Copyright (C) 2007 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...
package comp302.prototype.slide; import javax.swing.JPanel; import javax.swing.border.LineBorder; import java.awt.Color; import javax.swing.JLabel; import javax.swing.SwingConstants; import comp302.prototype.MainWindow; import java.awt.BorderLayout; import java.awt.Font; import java.awt.event.MouseEvent; import java...
package comp302.prototype.slide; import javax.swing.JPanel; import java.awt.BorderLayout; import javax.swing.JLabel; import javax.swing.SwingConstants; import comp302.prototype.MainWindow; import java.awt.Font; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; public class AdditionItem extends ...
package comp302.prototype.slide; import java.util.ArrayList; import java.util.Iterator; import javax.swing.JPanel; import comp302.prototype.PreviewPanel; import comp302.prototype.xml.XMLNode; public class SlideController { private PreviewPanel previewPanel; private JPanel slidePanel; private ArrayList<SlideItem>...
package comp302.prototype.slide; import java.awt.Color; import java.awt.Graphics; import java.util.Iterator; import javax.swing.JPanel; import comp302.prototype.MainWindow; import comp302.prototype.component.Component; import comp302.prototype.slide.handler.*; import comp302.prototype.xml.XMLNode; public class Slid...
package comp302.prototype.slide.handler; import java.util.ArrayList; import java.util.Iterator; import comp302.prototype.component.Component; import comp302.prototype.component.Line; import comp302.prototype.component.Zigzag; import comp302.prototype.xml.XMLNode; public class ComponentHandler { private ArrayList<Co...
package comp302.prototype.slide.handler; import java.awt.Graphics; import java.awt.Point; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.KeyAdapter; import comp302.prototype.component.Component; im...
package comp302.prototype; import javax.swing.JPanel; import comp302.prototype.slide.AdditionItem; import javax.swing.BoxLayout; public class PreviewPanel extends JPanel { private static final long serialVersionUID = 987650793665115933L; private JPanel previewSection; public PreviewPanel() { super(); Addit...
package comp302.prototype.misc; import java.awt.Point; public class MiscMath { public static int distanceToLine(Point start, Point end, Point point) { double x1 = start.getX(); double x2 = end.getX(); double x3 = point.getX(); double y1 = start.getY(); double y2 = end.getY(); double y3 = point.getY(); ...
package comp302.prototype.xml; import java.util.ArrayList; import java.util.Iterator; public class XMLNode { private String name = "", value = ""; private ArrayList<XMLAttribute> attributes = new ArrayList<XMLAttribute>(); private ArrayList<XMLNode> children = new ArrayList<XMLNode>(); public XMLNode(String nam...
package comp302.prototype.xml; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class XMLParser { private Scanner scanner; private String fileName; public XMLParser(String fileName) { try { scanner = new Scanner(new File(fileName)); scanner.useDelimiter("[\n\t<?...
package comp302.prototype.xml; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintStream; import comp302.prototype.slide.SlideController; public class XMLConstructor { private File file; public XMLConstructor(String fileName) { file = new File(fileName); } public void write(SlideC...
package comp302.prototype.xml; public class XMLAttribute { private String name = "", value = ""; public XMLAttribute(String name) { this.name = name; } public XMLAttribute(String name, String value) { this.name = name; this.value = value; } public String getName() { return name; } public Stri...
package comp302.prototype; import javax.swing.JPanel; import comp302.prototype.component.panel.*; import java.awt.CardLayout; public class OptionsPanel extends JPanel { private static final long serialVersionUID = 6376648426876757568L; public OptionsPanel() { setLayout(new CardLayout(0, 0)); JPanel selectPa...
package comp302.prototype.settings; import java.awt.CardLayout; import javax.swing.JPanel; public class ApplicationSettings { public static final short SELECT_TOOL = 0, LINE_TOOL = 1, ZIGZAG_TOOL = 2, TEXT_TOOL = 3; private static short currentTool = SELECT_TOOL; private static JPanel optionsPanel; public s...
package comp302.prototype.settings; import java.awt.Color; public class LineSettings { private static Color color = Color.RED; private static int thickness = 3; public static Color getColor() { return color; } public static void setColor(Color color) { LineSettings.color = color; } public static int ge...
package comp302.prototype.component; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Stroke; import java.util.ArrayList; import java.util.Iterator; import comp302.prototype.misc.MiscMath; import comp302.prototype.settings...
package comp302.prototype.component.panel; import javax.swing.JPanel; import java.awt.FlowLayout; import javax.swing.JLabel; public class SelectPanel extends JPanel { private static final long serialVersionUID = 7596771330174234504L; public SelectPanel() { JLabel lblSelectTool = new JLabel("Select Tool"); set...
package comp302.prototype.component.panel; import javax.swing.JColorChooser; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JComboBox; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import comp302.prototype.MainWindow; import comp302.prototype.settings.LineSettings; im...
package comp302.prototype.component; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Stroke; import java.util.Iterator; import comp302.prototype.misc.MiscMath; import comp302.prototype.settings.LineSettings; import comp30...
package comp302.prototype.component; import java.awt.Graphics; import java.awt.Point; import comp302.prototype.xml.XMLNode; public interface Component { public String getName(); public void draw(Graphics g); public boolean isPointInside(Point p); public boolean select(int x, int y); public void deselect();...
package comp302.prototype; import javax.swing.JPanel; import javax.swing.JButton; import comp302.prototype.settings.ApplicationSettings; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class ToolsPanel extends JPanel { private static final long serialVersionUID = -126669604852564662...
package comp302.prototype; import java.awt.EventQueue; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JMenu; import javax.swing.JPanel; import javax.swing.border.BevelBorder; import javax.swing.border.EtchedBorder; import comp...
package comp302.prototype; import javax.swing.JPanel; import java.awt.BorderLayout; public class SlidePanel extends JPanel { private static final long serialVersionUID = -3405511978314859455L; public SlidePanel() { super(); setLayout(new BorderLayout(0, 0)); } }
package dto; import org.springframework.web.multipart.MultipartFile; public class FreeboardDTO { private int free_no; private String username; private String free_password; private String free_title; private String free_content; private MultipartFile free_uploadfile; private String free_filename; ...
package dto; import java.sql.Date; public class AnimalsDTO{ private String Class_names; private String Common_names; private String Family; private String Authority; private String Red_List_status; private String ISO_Codes; private String URLS ; public AnimalsDTO(){ } public Ani...
package main; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @Controller public class AboutController { @RequestMapping("/about.do"...
package main; import java.io.*; import java.net.URLEncoder; import java.util.Map; import javax.servlet.http.*; import org.springframework.util.FileCopyUtils; import org.springframework.web.servlet.view.AbstractView; public class FreeboardDownView extends AbstractView { public FreeboardDownView() { ...
package main; import java.io.File; import java.io.IOException; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import or...
package main; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class MsgMainController { @RequestMapping("/index1.do") public String sh...
package main; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public...
package dao; import java.util.List; import dto.BadWordsDTO; public interface BadWordsDAO { List<String> select(String word); List<BadWordsDTO> selectRealAll(); void insert(BadWordsDTO dto); void delete(int num); List<String> selectAll(); String search(String word); int count(); }
package dao; import java.util.List; import dto.MemberDTO; public interface MemberDAO { public void member_insert(MemberDTO user); public List<MemberDTO> member_select(); public int member_user_num(MemberDTO user); public String member_userid(String id); }
package dao; import java.util.List; import dto.MsgDTO; import dto.supportRegDTO; public interface MsgDAO { public List msg_list(); public void msg_insert(MsgDTO dto); public List<supportRegDTO> getMyMsgList(String userNum); public List<MsgDTO> getMsgList(); public void msg_delete(int msg_num); pub...
package dao; import java.util.List; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import dto.MemberDTO; @Repository("member") public class MemberDAOImpl implements MemberDAO { @Autowired pr...
package dao; import java.util.List; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import dto.BadWordsDTO; @Repository("badwordsdao") public class BadWordsDAOImpl implements BadWordsDAO { @Aut...
package dao; import java.util.List; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import dto.MsgDTO; import dto.supportRegDTO; @Repository("msgdao") public class MsgDAOImpl implements MsgDAO {...
package dao; import java.lang.reflect.Array; import java.util.List; import dto.supportRegDTO; public interface supportDAO { public void insert(); public void sptInsert(supportRegDTO spt); public List<supportRegDTO> getSptList(); public int getTotalAmount(); public void setState(String[] param); ...
package dao; import java.util.List; import dto.EventsDTO; import dto.VideoDTO; public interface VideoDAO { void insert(); void insert(VideoDTO video); List<VideoDTO> getVideoList(); void update(VideoDTO video); void delete(String titles); VideoDTO select(String video_no); void setState(S...
package dao; import java.util.List; import dto.EventsDTO; public interface EventsDAO { void insert(); void insert(EventsDTO events); List<EventsDTO> getEventsList(); void update(EventsDTO events); void delete(String title); EventsDTO select(String events_no); }
package dao; import java.util.List; import org.apache.ibatis.session.SqlSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import dto.EventsDTO; @Repository("eventsdao") public class EventsDAOImpl implements EventsDAO { @Autowired ...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; /** * @author Joe LaPenna (joe@joelapenna.com) */ public class FoursquaredSettings { public static final boolean USE_DEBUG_SERVER = false; public static final boolean DEBUG = false; public static final boolean LOCATION_DEBUG = f...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare; public class TestCredentials { public static final String oAuthConsumerKey = ""; public static final String oAuthConsumerSecret = ""; public static final String oAuthToken = ""; public static final String oAuthTokenSecret = "";...
/** * Copyright 2010 Mark Wyszomierski * * 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 ag...
/* * Copyright 2010 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright 2010 Mark Wyszomierski * Portions Copyright (c) 2008-2010 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
/* * Copyright 2010 Mark Wyszomierski * Portions Copyright (c) 2008-2010 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import android.content.Intent; import android.location.Location; import android.os.Bundle; import android.os.Parcelable; ...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquared.util.NotificationsUtil; import android.app.Activity; import android.app.ProgressDialog; import android.content.BroadcastReceiver; import androi...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Category; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Respo...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquared.app.LoadableListActivi...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.Checkin; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Mayor; import com.joelapenna.foursquare.types.Stats; import com.joelapenna.foursquare.types.Tip; import com.joe...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquared.app.Loada...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquared.location.LocationUtils; import com.joelapenna.foursquared.preferences.Preferences; import com.joelapenna....
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquared.error.Locatio...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquared.location.LocationUtils; import com.joelapenna.foursqua...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.Category; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquared.util.RemoteResourceManager; import com.joelapenna.foursquared.widget.CategoryPickerAdapter; import android.a...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import android.app.Activity; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.content.Intent; import android.os.AsyncTask; import android.os...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.providers; import android.content.SearchRecentSuggestionsProvider; /** * @author Joe LaPenna (joe@joelapenna.com) */ public class VenueQuerySuggestionsProvider extends SearchRecentSuggestionsProvider { public static final String AUTHORIT...
/** * Copyright 2010 Tauno Talimaa */ package com.joelapenna.foursquared.providers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.fou...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquare.util....
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo; import com.joelapenna.foursquare.types.Venue; import com.joelapenna.foursquared.app.LoadableListActivity; imp...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquared.app.Loada...
/** * Copyright 2008 Joe LaPenna */ package com.joelapenna.foursquared; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquared.preferences.Preferences; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.BroadcastReceiver; import an...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import com.google.andro...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.view.View; import android.widget.TabHost; import android.widget.TabHost.TabSpec; /** * Acts as an interface to the TabSpec class for setting the content view. * The level 3 SDK doesn't support setting a View for the...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.FoursquaredSettings; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods....
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.text.TextUtils; import com.joelapenna.foursquare.types.FoursquareType; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo; /** * @date September 2, 2010. * @author Mark Wyszomie...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.app.Activity; import android.os.Build; /** * Acts as an interface to the contacts API which has changed between SDK 4 to * 5. * * @date February 14, 2010 * @author Mark Wyszomierski (markww@gmail.com), foursquar...
// Copyright 2003-2009 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland // www.source-code.biz, www.inventec.ch/chdh // // This module is multi-licensed and may be used under the terms // of any of the following licenses: // // EPL, Eclipse Public License, http://www.eclipse.org/legal // LGPL, GNU Le...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.FoursquaredSettings; import android.os.Environment; import android.util.Log; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; ...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import com.google.android.maps.GeoPoint; import android.content.Context; import android.location.Location; import android.location.LocationManager; import java.util.List; /** * @date June 30, 2010 * @author Mark Wyszomierski (ma...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.os.Parcel; import android.text.TextUtils; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.Todo; import com.joelapenna.foursquare.types.V...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.FoursquaredSettings; import android.net.Uri; import android.util.Log; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.Observable; import java.util.Observer; ...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquared.R; import android.content.Context; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Build; import android.view.LayoutInflater; import android.view.View; im...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.media.ExifInterface; import android.text.TextUtils; /** * @date July 24, 2010 * @author Mark Wyszomierski (markww@gmail.com) */ public class ExifUtils { private ExifUtils() { } public static int get...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; /** * @author Joe LaPenna (joe@joelapenna.com) */ public class NullDiskCache implements DiskCache { /* * (non-J...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.util.Log; import java.util.Calendar; import java.util.Date; /** * Initializes a few Date objects to act as boundaries for sorting checkin lists * by the following time categories: * * <ul> * <li>Within the la...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquare.error.FoursquareCredentialsException; import com.joelapenna.foursquare.error.FoursquareException; import com.joelapenna.foursquared.FoursquaredSettings; import com.joelapenna.foursquared.error.LocationExcep...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date;...
package com.joelapenna.foursquared.util; import com.joelapenna.foursquare.types.Group; import com.joelapenna.foursquare.types.User; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; /** *...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import java.io.File; import java.io.IOException; import java.io.InputStream; /** * @author Joe LaPenna (joe@joelapenna.com) */ public interface DiskCache { public boolean exists(String key); public File getFile(String key); ...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import com.joelapenna.foursquare.types.Checkin; import com.joelapenna.foursquare.types.Tip; import com.joelapenna.foursquare.types.User; import com.joelapenna.foursquare.types.Venue; import java.text.ParseException; import java.util.Compa...
/** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquared.util; import android.util.Log; import java.util.HashMap; import java.util.Map; import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.LogRecord; /** * @author Joe LaPenna (joe@joelapenna.com) */ public cla...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.os.Build; import java.io.FileOutputStream; import java.io.OutputStream; /** * @date July 24, 2010 * @author Mar...
/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.graphics.drawable.Drawable; import android.widget.TabHost.TabSpec; /** * Acts as an interface to the TabSpec class for setting the content view. * The level 3 SDK doesn't support setting a View for the content secti...