hudson.model
Class LargeText

java.lang.Object
  extended by hudson.model.LargeText

Deprecated. moved to stapler, as of Hudson 1.220

public class LargeText
extends Object

Represents a large text data.

This class defines methods for handling progressive text update.

Author:
Kohsuke Kawaguchi

Constructor Summary
LargeText(ByteBuffer memory, boolean completed)
          Deprecated.  
LargeText(File file, boolean completed)
          Deprecated.  
 
Method Summary
 void doProgressText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Deprecated. Implements the progressive text handling.
 boolean isComplete()
          Deprecated.  
 void markAsComplete()
          Deprecated.  
 Reader readAll()
          Deprecated. Returns Reader for reading the raw bytes.
 long writeLogTo(long start, Writer w)
          Deprecated. Writes the tail portion of the file to the Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LargeText

public LargeText(File file,
                 boolean completed)
Deprecated. 

LargeText

public LargeText(ByteBuffer memory,
                 boolean completed)
Deprecated. 
Method Detail

markAsComplete

public void markAsComplete()
Deprecated. 

isComplete

public boolean isComplete()
Deprecated. 

readAll

public Reader readAll()
               throws IOException
Deprecated. 
Returns Reader for reading the raw bytes.

Throws:
IOException

writeLogTo

public long writeLogTo(long start,
                       Writer w)
                throws IOException
Deprecated. 
Writes the tail portion of the file to the Writer.

The text file is assumed to be in the system default encoding.

Parameters:
start - The byte offset in the input file where the write operation starts.
Returns:
if the file is still being written, this method writes the file until the last newline character and returns the offset to start the next write operation.
Throws:
IOException

doProgressText

public void doProgressText(org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)
                    throws IOException
Deprecated. 
Implements the progressive text handling. This method is used as a "web method" with progressiveText.jelly.

Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.