목록전체 글 (1755)
오늘도 공부
NIO가 무엇일까요? NonBloking Input-Output 입니다. 기존의 일반 IO는 항상 블럭화가 되면서, 처리를 해왓습니다. 블럭화가되면 그블럭이 풀리기전까진 아무것도 수행할수 없지요. 그래서 그것이 큰 단점이기도 하지요.NIO는 JDK 1.4 이전에는 존재 하지 않는 방법론입니다. 그 이후에 생긴 방법론이므로 참고 하시면 되구요.어쨋든 그래서 NIO가 무엇이냐면.. 블럭화(잠수)를 타지않고 작업을 할수있게 해주는 방법론이에요.서버가 존재하고 통신을 할때 메인스레드가 블럭화(잠수)를 타버리면 그 블럭화가 풀리기전까진 아무것도 못하잖아요..?이것은 블럭을 시키지않고서, 누가 들어오던지 자료를 요청하던지 블럭 시키지않고 그냥 무작정 일만 처리시키는것이죠.하나 이상적인 예를 들어볼가요?사장 ..
출처 : http://blog.naver.com/skyadult?Redirect=Log&logNo=20025986907 14. ServerSocketChannel 클래스와 SocketChannel 클래스 이제 실전에 들어가기 전에 ServerSocketChannel 클래스와 SocketChannel 클래스에 대해 먼저 알아보자. 이들은 net패키지의 ServerSocket클래스와 Socket클래스를 채널로서 다루고자 할 때 쓰는 SelectableChannel이다. 이들 네트워크 관련 채널들은 독자적으로 소켓의 역할을 대처하지는 않는다. 대신 소켓 클래스를 내부에 가지고 있으면서 이들의 기능을 채널화하는데 적절히 이용하게 된다. 1> ServerSocketChannel 클래스 ① ServerSocketC..
출처 :http://pppplqqqq.blog.me/100107860575 ProgressBar 설정 styles.xml 파일에 추가 (res/values/styles.xml) drawable 폴더에 progress_large_color.xml 추가
The SequenceInputStream class allows you to concatenate multiple InputStreams. The construction of aSequenceInputStream is different from any other InputStream. A SequenceInputStream constructor uses either a pair of InputStreams or an Enumeration of InputStreams as its argument:SequenceInputStream(InputStream first, InputStream second) SequenceInputStream(Enumeration streamEnum) Operationally, ..
http://ecogeo.tistory.com/278
import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.zip.ZipEntry;import java.util.zip.ZipInputStream;import java.util.zip.ZipOutputStream;import org.apache.commons.lang.StringUtils;public class ZipUtils {private static final int COMPRESSION_LEVEL = 8;private static final int BUF..
http://jeehun.egloos.com/3998716
출처 : http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ Separating Lists with Headers in Android 0.9Monday August 18, 2008 at 4:42 PM Earlier today the latest Android 0.9 SDK was released, and it’s packed full of wonderful changes. As you play around, you might see ListViews split into sections using separating headers. (Example shown on the right is the browser set..
출처 : http://blogingtutorials.blogspot.com/2010/11/android-listview-header-two-or-more-in.html Hello Friends, There are two or many more header listview in android. So Today we are discussed about the two header of android. And See Also Simple Listview Display In Android Device. So This are the all java and xml file given below. and this are the very useful projects. main.xml header.xml Now The j..
출처 : http://blog.naver.com/PostView.nhn?blogId=kippee&logNo=130048583564 아직 까지는 이 세개의 관계가 정리가 안된다. http://codinghard.wordpress.com/2009/05/16/android-thread-messaging/ 에서는 Handler와 Looper의 역할에 대하여 아래와 같이 예를 들어 설명한다. 안드로이드는 Thread간에 통신하기 위해서 Handler와 Looper를 제공하고 있다. Child Thread가 웹으로 부터 이미지를 가져와 생성하려고 할때의 예를 제시하고 있다. 생성이 끝나고 (아마도 imageView형태로 바꾸어서) Main Thread의 Message Queue와 연동된 Handler를 이용하여 M..
