用 GZipInputStream 去读一个gz文件(200MB),但是结果却不完整(500MB) 实际界压缩应该是(1.4GB) 听说Java built in Zip implementation本来就有毛病,不知道大家有没有其他方法, 比如其3rd party code。 code snap: FileInputStream inputStream = new FileInputStream(file); GZIPInputStream gz = new GZIPInputStream(inputStream); BufferedReader br = new BufferedReader(new InputStreamReader(gz)); String line = ""; while((line=br.readLine())!=null){ //do stuff }
f*I
3 楼
if it's ulcerative colitis, it is one of the inflammatory bowel dises along with crohn's disease, as far as treatment goes, sulfasalazine has been the mainstay of drug; if it doesn't work well, sometime they will add steroid, for instance, hydrocortisone enema for the distal ulcerative colitis, or oral steroid, but the side effects of steroid have to be considered, immunosuppressive agents such as imuran and cyclosporine are sometimes used also, though remicade is approved for Crohn's, there ar
【在 f******I 的大作中提到】 : : if it's ulcerative colitis, it is one of the inflammatory bowel dises along : with crohn's disease, : as far as treatment goes, sulfasalazine has been the mainstay of drug; if it : doesn't work well, sometime they will add steroid, for instance, : hydrocortisone enema for the distal ulcerative colitis, or oral steroid, but : the side effects of steroid have to be considered, : immunosuppressive agents such as imuran and cyclosporine are sometimes used : also, : though remicade is approved for Crohn's, there ar
j*n
6 楼
java 底层用的是zlib实现,去看zlib文档把
【在 D**C 的大作中提到】 : 似乎GZipInputStream的limit就是512MB
f*I
7 楼
first of all these medications need prescription, normally newly diagnosed lcerative colitis can start with sulfasalazine, i think the point to make is to avoid steroid as much as possible due to all the adverse effects, but entocort is probably the better steroid since it targets intestines and is quickly metabolized thus lower systemic effect,
【在 p*****1 的大作中提到】 : 所以,我该买什么药? : 好专业,我都不知道怎么理解..... : : along : it : but : used : why