반응형

SimpleMagic  example 입니다

SimpleMagic - Simple Magic Content and Mime Type Detection Java Package

Here's a quick "magic" number package that I whipped up which allows content-type (mime-type) determination from files and byte arrays. It makes use of the magic(5) Unix content-type files to implement the same functionality as the Unix file(1) command in Java which detects the contents of a file. It uses either internal config files or can read /etc/magic/usr/share/file/magic, or other magic(5) files and determine file content from FileInputStream, or byte[].

Simple Code Sample

The following is a quick code sample to help you get started using the library for mime-type detection.

// create a magic utility using the internal magic file
ContentInfoUtil util = new ContentInfoUtil();
// if you want to use a different config file(s), you can load them by hand:
// ContentInfoUtil util = new ContentInfoUtil("/etc/magic");
...
ContentInfo info = util.findMatch("/tmp/upload.tmp");
// or
ContentInfo info = util.findMatch(inputStream);
// or
ContentInfo info = util.findMatch(contentByteArray);
// display content type information
if (info == null) {
   System.out.println("Unknown content-type");
} else {
   // other information in ContentInfo type
   System.out.println("Content-type is: " + info.getName());
}

Free Spam Protection   Eggnog Recipe   Android ORM   Simple Java Magic   JMX using HTTP   OAuth 2.0 Simple Example   Great Eggnog Recipe   Christopher Randolph  


다운

링크 : https://github.com/j256/simplemagic

반응형
반응형

안녕하세요 첫 포스팅인데요 허접해도 
잘 봐주세요 ㅎ
일본 나고시에는 선술집을 찾기 힘든데요
숙소 근처에  이자카야 있는 걸 발견하고 가보았습니다!!
술 좋아하는 편이라서요 ㅋㅋ

이레 사진은 ! 정문 사진입니다!


아래 메뉴판 입니다!!
가격이  저렴합니다~ 놀랬습니다

하지만 푸드메뉴2에 맨아래 자리세 사람당 250엔 받는것이 보이실것입니다 
그래도 250엔 가만해도 가격이  싼편이네요 ㅋㅋ

저희는

roasts beaf salad 580엔짜리 시켜보았습니다 아래 ㅋㅋㅋ 고기가 부드럽고 맛있엇습니다

오리온 맥주도 빠질수가 없지요 ㅋㅋㅋ 생맥으로 한 두명이서 6잔 먹었네요

추가로 오리지날 샐러드 480엔 짜리 샐러드 시켜 보았는데요 참치도 들어있어 좋앗습니다!!

이자카야 아래 발빠지는 룸식입니다

일본 메뉴판이라 보기만하였습니다 ㅎ

중요한 
맵코드는 206 656 154*55 입니다!!

많이 부족한 첫포스팅이었습니다

감사합니다


반응형

'여행 & 맛집' 카테고리의 다른 글

송리단길 맛집  (1) 2025.01.17
반응형

SVN Server와 이클립스 버전등의 정보가 맞지 않는다면 파싱되는 과정에서 에러가 발생해  e175002 에러가 난다

이를 해결하기위해 SVN 클라이언트를 설치후 SVN Server에서 소스를 다운받아 직접 이클립스에 넣는것을 추천한다


아래 SVN 설치 

https://tortoisesvn.net/downloads.html


아래사이트 참고

https://m.blog.naver.com/PostView.nhn?blogId=mongnme&logNo=220788195121&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F




반응형

+ Recent posts