LogContent (ant-antunit API)
Description: declaration: package: org.apache.ant.antunit, class: LogContent

# Klasse LogContent

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.Resource
org.apache.ant.antunit.LogContent

Alle implementierten Schnittstellen:
  `Cloneable, Comparable<org.apache.tools.ant.types.Resource>, Iterable<org.apache.tools.ant.types.Resource>, org.apache.tools.ant.types.ResourceCollection`

public class LogContent extends org.apache.tools.ant.types.Resource
Exposes AntUnit log content as a (read-only) Resource.

- ## Feldübersicht

  ### Von Klasse geerbte Felder org.apache.tools.ant.types.Resource

  `MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZE`

  ### Von Klasse geerbte Felder org.apache.tools.ant.types.DataType

  `checked, ref`

  ### Von Klasse geerbte Felder org.apache.tools.ant.ProjectComponent

  `description, location, project`

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `LogContent()`
  Create a new LogContent resource.
  `LogContent(org.apache.tools.ant.Project p, org.apache.tools.ant.types.LogLevel level)`
  Create a new LogContent resource, specifying Project and log level.
  `LogContent(org.apache.tools.ant.Project p, org.apache.tools.ant.types.LogLevel level, boolean mergeLines)`
  Create a new LogContent resource, specifying Project and log level.

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `boolean`
  `equals(Object o)`
  `InputStream`
  `getInputStream()`
  `boolean`
  `isExists()`
  `final void`
  `setLevel(org.apache.tools.ant.types.LogLevel level)`
  Set the desired log level.
  `final void`
  `setMergeLines(boolean b)`
  Whether to merge messages into a single line or split them into multiple lines.

  ### Von Klasse geerbte Methoden org.apache.tools.ant.types.Resource

  `as, asOptional, clone, compareTo, getLastModified, getMagicNumber, getName, getOutputStream, getRef, getSize, hashCode, isDirectory, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setRefid, setSize, size, toLongString, toString`

  ### Von Klasse geerbte Methoden org.apache.tools.ant.types.DataType

  `checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes`

  ### Von Klasse geerbte Methoden org.apache.tools.ant.ProjectComponent

  `getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject`

  ### Von Klasse geerbte Methoden Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Von Schnittstelle geerbte Methoden Iterable

  `forEach, spliterator`

  ### Von Schnittstelle geerbte Methoden org.apache.tools.ant.types.ResourceCollection

  `isEmpty, stream`

- ## Konstruktordetails

  - ### LogContent

    public LogContent()
    Create a new LogContent resource.

  - ### LogContent

    public LogContent(org.apache.tools.ant.Project p, org.apache.tools.ant.types.LogLevel level)
    Create a new LogContent resource, specifying Project and log level.

    This constructor is provided primarily for convenience during programmatic usage.

    Parameter:
      `p` - the test project
      `level` - the LogLevel.

  - ### LogContent

    public LogContent(org.apache.tools.ant.Project p, org.apache.tools.ant.types.LogLevel level, boolean mergeLines)
    Create a new LogContent resource, specifying Project and log level.

    This constructor is provided primarily for convenience during programmatic usage.

    Parameter:
      `p` - the test project
      `level` - the LogLevel.
      `mergeLines` - whether to merge messages into a single line or split them into multiple lines
    Seit:
      AntUnit 1.3

- ## Methodendetails

  - ### setLevel

    public final void setLevel(org.apache.tools.ant.types.LogLevel level)
    Set the desired log level.
    Parameter:
      `level` - a LogLevel enumerated attribute.

  - ### setMergeLines

    public final void setMergeLines(boolean b)
    Whether to merge messages into a single line or split them into multiple lines.
    Parameter:
      `b` - whether to merge messages into a single line
    Seit:
      AntUnit 1.3

  - ### getInputStream

    public InputStream getInputStream() throws IOException
    Setzt außer Kraft:
      `getInputStream` in Klasse `org.apache.tools.ant.types.Resource`
    Löst aus:
      `IOException`

  - ### isExists

    public boolean isExists()
    Setzt außer Kraft:
      `isExists` in Klasse `org.apache.tools.ant.types.Resource`

  - ### equals

    public boolean equals(Object o)
    Setzt außer Kraft:
      `equals` in Klasse `org.apache.tools.ant.types.Resource`