문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
web:yuicompressor [2014/08/25 14:58] kwon37xi 만듦 |
web:yuicompressor [2014/08/25 18:35] (현재) kwon37xi [CSS Compress] |
||
---|---|---|---|
줄 3: | 줄 3: | ||
* '' | * '' | ||
* 보통 '' | * 보통 '' | ||
- | * '' | + | * [[https:// |
- | * '' | + | * [[https:// |
- | * '' | + | * [[https:// |
+ | |||
+ | ===== CSS Compress ===== | ||
+ | '' | ||
+ | <code java> | ||
+ | // in 은 Reader 객체 | ||
+ | CssCompressor compressor = new CssCompressor(in); | ||
+ | |||
+ | // Close the input stream first, and then open the output stream, | ||
+ | // in case the output file should override the input file. | ||
+ | in.close(); in = null; | ||
+ | |||
+ | if (outputFilename == null) { | ||
+ | out = new OutputStreamWriter(System.out, | ||
+ | } else { | ||
+ | out = new OutputStreamWriter(new FileOutputStream(outputFilename), | ||
+ | } | ||
+ | |||
+ | // linebreakpos는 기본값이 -1 이다. 대부분 -1로 두면 될 듯. | ||
+ | compressor.compress(out, | ||
+ | </ | ||
+ | * linebreakpos 값 | ||
+ | * '' | ||
+ | * '' |