본문 바로가기
SW Programming/JAVA

IOConsole.setWaterMarks 로 글자수 만큼만 콘솔 관리하기

by Crystal.k 2020. 11. 6.

void org.eclipse.ui.console.IOConsole.setWaterMarks(int low, int high)

 

Sets the text buffer size for this console. The high water mark indicates the maximum number of characters stored in the buffer. The low water mark indicates the number of characters remaining in the buffer when the high water mark is exceeded.
Parameters:low the number of characters remaining in the buffer when the high water mark is exceeded (if -1 the console does not limit output)high the maximum number of characters this console will cache in its text buffer (if -1 the console does not limit output)Throws:IllegalArgumentException - if low >= high & low != -1

 

 

stackoverflow.com/questions/48869004/how-to-programmatically-limit-buffer-size-for-eclipse-messageconsole

반응형

댓글