Class Element<D extends AnyDocument<D>,PC extends Content<D,PC>,E extends Element<D,PC,E>>
- Type Parameters:
D
- This document typePC
- The parent content model this element is withinE
- This element type
- All Implemented Interfaces:
Whitespace
,Autofocus<E>
,AutocapitalizeUnexpected<E>
,Dir<E>
,OnabortUnexpected<E>
,Onblur<E>
,OncanplaythroughUnexpected<E>
,OncanplayUnexpected<E>
,OnchangeUnexpected<E>
,Onclick<E>
,Oncontextmenu<E>
,Oncopy<E>
,Oncut<E>
,Ondblclick<E>
,Ondrag<E>
,Ondragend<E>
,Ondragenter<E>
,Ondragleave<E>
,Ondragover<E>
,Ondragstart<E>
,Ondrop<E>
,OndurationchangeUnexpected<E>
,OnemptiedUnexpected<E>
,OnendedUnexpected<E>
,OnerrorUnexpected<E>
,Onfocus<E>
,OninputUnexpected<E>
,OninvalidUnexpected<E>
,Onkeydown<E>
,Onkeypress<E>
,Onkeyup<E>
,OnloadeddataUnexpected<E>
,OnloadedmetadataUnexpected<E>
,OnloadstartUnexpected<E>
,OnloadUnexpected<E>
,Onmousedown<E>
,Onmouseenter<E>
,Onmouseleave<E>
,Onmousemove<E>
,Onmouseout<E>
,Onmouseover<E>
,Onmouseup<E>
,Onmousewheel<E>
,Onpaste<E>
,OnpauseUnexpected<E>
,OnplayingUnexpected<E>
,OnplayUnexpected<E>
,OnprogressUnexpected<E>
,OnratechangeUnexpected<E>
,OnresetUnexpected<E>
,OnresizeUnexpected<E>
,Onscroll<E>
,OnsecuritypolicyviolationUnexpected<E>
,OnseekedUnexpected<E>
,OnseekingUnexpected<E>
,OnselectUnexpected<E>
,OnslotchangeUnexpected<E>
,OnstalledUnexpected<E>
,OnsubmitUnexpected<E>
,OnsuspendUnexpected<E>
,OntimeupdateUnexpected<E>
,OntoggleUnexpected<E>
,OnvolumechangeUnexpected<E>
,OnwaitingUnexpected<E>
,Onwheel<E>
,Tabindex<E>
,Accesskey<E>
,Attribute<E>
,Class<E>
,Data<E>
,Id<E>
,Lang<E>
,Style<E>
,Title<E>
,DocumentWriter
,GlobalAttributes<E>
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.text.Accesskey
Accesskey.accesskey
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.text.Class
Class.clazz
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.text.Data
Data.data, Data.dataset
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.enumeration.Dir
Dir.dir, Dir.Value
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.text.Lang
Lang.lang
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onblur
Onblur.onblur
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onclick
Onclick.onclick
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Oncontextmenu
Oncontextmenu.oncontextmenu
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Oncopy
Oncopy.oncopy
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Oncut
Oncut.oncut
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondblclick
Ondblclick.ondblclick
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondrag
Ondrag.ondrag
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondragend
Ondragend.ondragend
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondragenter
Ondragenter.ondragenter
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondragleave
Ondragleave.ondragleave
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondragover
Ondragover.ondragover
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondragstart
Ondragstart.ondragstart
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Ondrop
Ondrop.ondrop
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onfocus
Onfocus.onfocus
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onkeydown
Onkeydown.onkeydown
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onkeypress
Onkeypress.onkeypress
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onkeyup
Onkeyup.onkeyup
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmousedown
Onmousedown.onmousedown
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmouseenter
Onmouseenter.onmouseenter
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmouseleave
Onmouseleave.onmouseleave
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmousemove
Onmousemove.onmousemove
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmouseout
Onmouseout.onmouseout
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmouseover
Onmouseover.onmouseover
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmouseup
Onmouseup.onmouseup
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onmousewheel
Onmousewheel.onmousewheel
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onpaste
Onpaste.onpaste
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onscroll
Onscroll.onscroll
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.event.Onwheel
Onwheel.onwheel
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.text.Style
Style.style
Nested classes/interfaces inherited from interface com.aoapps.html.any.attributes.text.Title
Title.title
-
Field Summary
Fields inherited from interface com.aoapps.encoding.Whitespace
INDENT_SPACES, NL, SPACE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.autoIndent
(int depthOffset) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.autoNl()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.autoNli()
Performs automatic newline whenDocumentWriter.getAutonli()
and notDocumentWriter.getAtnl()
, followed by automatic indentation when enabled.autoNli
(int depthOffset) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.decDepth()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.boolean
getAtnl()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.boolean
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.int
getDepth()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.boolean
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Deprecated.This method will remain, but its use is discouraged as it can be dangerousgetRawUnsafe
(Boolean endsNewline) Deprecated.This method will remain, but its use is discouraged as it can be dangerousincDepth()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.indent()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.indent
(int depthOffset) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.nl()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.nli()
nli
(int depthOffset) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.setAtnl()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.setAtnl
(boolean atnl) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.setAutonli
(boolean autonli) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.setDepth
(int depth) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.setIndent
(boolean indent) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.sp()
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.sp
(int count) Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.unsafe()
Deprecated.This method will remain, but its use is discouraged as it can be dangerousunsafe
(char ch) Deprecated.This method will remain, but its use is discouraged as it can be dangerousunsafe
(char[] cbuf) Deprecated.This method will remain, but its use is discouraged as it can be dangerousunsafe
(char[] cbuf, int offset, int len) Deprecated.This method will remain, but its use is discouraged as it can be dangerousunsafe
(IOSupplierE<?, Ex> unsafe) Deprecated.This method will remain, but its use is discouraged as it can be dangerousDeprecated.This method will remain, but its use is discouraged as it can be dangerousunsafe
(CharSequence csq) Deprecated.This method will remain, but its use is discouraged as it can be dangerousunsafe
(CharSequence csq, int start, int end) Deprecated.This method will remain, but its use is discouraged as it can be dangerousDeprecated.This method will remain, but its use is discouraged as it can be dangerousprotected abstract E
Writes the beginning of the opening tag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoapps.html.any.attributes.text.Accesskey
accesskey, accesskey, accesskey, accesskey
Methods inherited from interface com.aoapps.html.any.attributes.text.Attribute
attribute, attribute, attribute
Methods inherited from interface com.aoapps.html.any.attributes.enumeration.AutocapitalizeUnexpected
autocapitalize, autocapitalize, autocapitalize, autocapitalize
Methods inherited from interface com.aoapps.html.any.attributes.bool.Autofocus
autofocus, autofocus, autofocus
Methods inherited from interface com.aoapps.html.any.attributes.text.Class
clazz, clazz, clazz, clazz
Methods inherited from interface com.aoapps.html.any.attributes.text.Data
data, data, data, dataset, dataset, dataset
Methods inherited from interface com.aoapps.html.any.attributes.text.Lang
lang, lang, lang, lang, lang
Methods inherited from interface com.aoapps.html.any.attributes.event.OnabortUnexpected
onabort, onabort, onabort
Methods inherited from interface com.aoapps.html.any.attributes.event.OncanplaythroughUnexpected
oncanplaythrough, oncanplaythrough, oncanplaythrough
Methods inherited from interface com.aoapps.html.any.attributes.event.OncanplayUnexpected
oncanplay, oncanplay, oncanplay
Methods inherited from interface com.aoapps.html.any.attributes.event.OnchangeUnexpected
onchange, onchange, onchange
Methods inherited from interface com.aoapps.html.any.attributes.event.Onclick
onclick, onclick, onclick
Methods inherited from interface com.aoapps.html.any.attributes.event.Oncontextmenu
oncontextmenu, oncontextmenu, oncontextmenu
Methods inherited from interface com.aoapps.html.any.attributes.event.Ondblclick
ondblclick, ondblclick, ondblclick
Methods inherited from interface com.aoapps.html.any.attributes.event.Ondragend
ondragend, ondragend, ondragend
Methods inherited from interface com.aoapps.html.any.attributes.event.Ondragenter
ondragenter, ondragenter, ondragenter
Methods inherited from interface com.aoapps.html.any.attributes.event.Ondragleave
ondragleave, ondragleave, ondragleave
Methods inherited from interface com.aoapps.html.any.attributes.event.Ondragover
ondragover, ondragover, ondragover
Methods inherited from interface com.aoapps.html.any.attributes.event.Ondragstart
ondragstart, ondragstart, ondragstart
Methods inherited from interface com.aoapps.html.any.attributes.event.OndurationchangeUnexpected
ondurationchange, ondurationchange, ondurationchange
Methods inherited from interface com.aoapps.html.any.attributes.event.OnemptiedUnexpected
onemptied, onemptied, onemptied
Methods inherited from interface com.aoapps.html.any.attributes.event.OnendedUnexpected
onended, onended, onended
Methods inherited from interface com.aoapps.html.any.attributes.event.OnerrorUnexpected
onerror, onerror, onerror
Methods inherited from interface com.aoapps.html.any.attributes.event.Onfocus
onfocus, onfocus, onfocus
Methods inherited from interface com.aoapps.html.any.attributes.event.OninputUnexpected
oninput, oninput, oninput
Methods inherited from interface com.aoapps.html.any.attributes.event.OninvalidUnexpected
oninvalid, oninvalid, oninvalid
Methods inherited from interface com.aoapps.html.any.attributes.event.Onkeydown
onkeydown, onkeydown, onkeydown
Methods inherited from interface com.aoapps.html.any.attributes.event.Onkeypress
onkeypress, onkeypress, onkeypress
Methods inherited from interface com.aoapps.html.any.attributes.event.Onkeyup
onkeyup, onkeyup, onkeyup
Methods inherited from interface com.aoapps.html.any.attributes.event.OnloadeddataUnexpected
onloadeddata, onloadeddata, onloadeddata
Methods inherited from interface com.aoapps.html.any.attributes.event.OnloadedmetadataUnexpected
onloadedmetadata, onloadedmetadata, onloadedmetadata
Methods inherited from interface com.aoapps.html.any.attributes.event.OnloadstartUnexpected
onloadstart, onloadstart, onloadstart
Methods inherited from interface com.aoapps.html.any.attributes.event.OnloadUnexpected
onload, onload, onload
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmousedown
onmousedown, onmousedown, onmousedown
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmouseenter
onmouseenter, onmouseenter, onmouseenter
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmouseleave
onmouseleave, onmouseleave, onmouseleave
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmousemove
onmousemove, onmousemove, onmousemove
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmouseout
onmouseout, onmouseout, onmouseout
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmouseover
onmouseover, onmouseover, onmouseover
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmouseup
onmouseup, onmouseup, onmouseup
Methods inherited from interface com.aoapps.html.any.attributes.event.Onmousewheel
onmousewheel, onmousewheel, onmousewheel
Methods inherited from interface com.aoapps.html.any.attributes.event.Onpaste
onpaste, onpaste, onpaste
Methods inherited from interface com.aoapps.html.any.attributes.event.OnpauseUnexpected
onpause, onpause, onpause
Methods inherited from interface com.aoapps.html.any.attributes.event.OnplayingUnexpected
onplaying, onplaying, onplaying
Methods inherited from interface com.aoapps.html.any.attributes.event.OnplayUnexpected
onplay, onplay, onplay
Methods inherited from interface com.aoapps.html.any.attributes.event.OnprogressUnexpected
onprogress, onprogress, onprogress
Methods inherited from interface com.aoapps.html.any.attributes.event.OnratechangeUnexpected
onratechange, onratechange, onratechange
Methods inherited from interface com.aoapps.html.any.attributes.event.OnresetUnexpected
onreset, onreset, onreset
Methods inherited from interface com.aoapps.html.any.attributes.event.OnresizeUnexpected
onresize, onresize, onresize
Methods inherited from interface com.aoapps.html.any.attributes.event.Onscroll
onscroll, onscroll, onscroll
Methods inherited from interface com.aoapps.html.any.attributes.event.OnsecuritypolicyviolationUnexpected
onsecuritypolicyviolation, onsecuritypolicyviolation, onsecuritypolicyviolation
Methods inherited from interface com.aoapps.html.any.attributes.event.OnseekedUnexpected
onseeked, onseeked, onseeked
Methods inherited from interface com.aoapps.html.any.attributes.event.OnseekingUnexpected
onseeking, onseeking, onseeking
Methods inherited from interface com.aoapps.html.any.attributes.event.OnselectUnexpected
onselect, onselect, onselect
Methods inherited from interface com.aoapps.html.any.attributes.event.OnslotchangeUnexpected
onslotchange, onslotchange, onslotchange
Methods inherited from interface com.aoapps.html.any.attributes.event.OnstalledUnexpected
onstalled, onstalled, onstalled
Methods inherited from interface com.aoapps.html.any.attributes.event.OnsubmitUnexpected
onsubmit, onsubmit, onsubmit
Methods inherited from interface com.aoapps.html.any.attributes.event.OnsuspendUnexpected
onsuspend, onsuspend, onsuspend
Methods inherited from interface com.aoapps.html.any.attributes.event.OntimeupdateUnexpected
ontimeupdate, ontimeupdate, ontimeupdate
Methods inherited from interface com.aoapps.html.any.attributes.event.OntoggleUnexpected
ontoggle, ontoggle, ontoggle
Methods inherited from interface com.aoapps.html.any.attributes.event.OnvolumechangeUnexpected
onvolumechange, onvolumechange, onvolumechange
Methods inherited from interface com.aoapps.html.any.attributes.event.OnwaitingUnexpected
onwaiting, onwaiting, onwaiting
Methods inherited from interface com.aoapps.html.any.attributes.event.Onwheel
onwheel, onwheel, onwheel
Methods inherited from interface com.aoapps.html.any.attributes.text.Style
style, style, style, style
-
Field Details
-
document
-
pc
-
-
Constructor Details
-
Element
-
-
Method Details
-
getDocument
-
nl
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.nl()
.- Specified by:
nl
in interfaceDocumentWriter
- Specified by:
nl
in interfaceWhitespace
- Throws:
IOException
-
nli
Delegates to
AnyDocument.nli()
.- Specified by:
nli
in interfaceDocumentWriter
- Specified by:
nli
in interfaceWhitespace
- Throws:
IOException
-
nli
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.nli(int)
.- Specified by:
nli
in interfaceDocumentWriter
- Specified by:
nli
in interfaceWhitespace
- Throws:
IOException
-
indent
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.indent()
.- Specified by:
indent
in interfaceDocumentWriter
- Specified by:
indent
in interfaceWhitespace
- Throws:
IOException
-
indent
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.indent(int)
.- Specified by:
indent
in interfaceDocumentWriter
- Specified by:
indent
in interfaceWhitespace
- Throws:
IOException
-
getIndent
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.getIndent()
.- Specified by:
getIndent
in interfaceWhitespace
-
setIndent
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.setIndent(boolean)
.- Specified by:
setIndent
in interfaceDocumentWriter
- Specified by:
setIndent
in interfaceWhitespace
-
getDepth
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.getDepth()
.- Specified by:
getDepth
in interfaceWhitespace
-
setDepth
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.setDepth(int)
.- Specified by:
setDepth
in interfaceDocumentWriter
- Specified by:
setDepth
in interfaceWhitespace
-
incDepth
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.incDepth()
.- Specified by:
incDepth
in interfaceDocumentWriter
- Specified by:
incDepth
in interfaceWhitespace
-
decDepth
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.decDepth()
.- Specified by:
decDepth
in interfaceDocumentWriter
- Specified by:
decDepth
in interfaceWhitespace
-
sp
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.sp()
.- Specified by:
sp
in interfaceDocumentWriter
- Specified by:
sp
in interfaceWhitespace
- Throws:
IOException
-
sp
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Delegates to
AnyDocument.sp(int)
.- Specified by:
sp
in interfaceDocumentWriter
- Specified by:
sp
in interfaceWhitespace
- Throws:
IOException
-
getRawUnsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousGets the current writer this document is writing to, which may be used for raw output.Please prefer
DocumentWriter.unsafe()
, which is compatible with try-with-resources blocks. The writer returned here is the real, underlying writer.Delegates to
AnyDocument.getRawUnsafe(java.lang.Boolean)
.- Specified by:
getRawUnsafe
in interfaceDocumentWriter
- Parameters:
endsNewline
- Indicates whether the data that will be written will end in aWhitespace.NL
. When non-null, will callDocumentWriter.setAtnl(boolean)
with the given value.- Returns:
- The writer, already optimized via
Coercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
withencoder = null
. - Throws:
IllegalStateException
- when output has been set tonull
.- See Also:
-
getRawUnsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousGets the current writer this document is writing to, which may be used for raw output.Please prefer
DocumentWriter.unsafe()
, which is compatible with try-with-resources blocks. The writer returned here is the real, underlying writer.With no knowledge of what will be written, calls
DocumentWriter.clearAtnl()
to be safe.Delegates to
AnyDocument.getRawUnsafe()
.- Specified by:
getRawUnsafe
in interfaceDocumentWriter
- Returns:
- The writer, already optimized via
Coercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
withencoder = null
. - Throws:
IllegalStateException
- when output has been set tonull
.- See Also:
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output of a single character, automatically determiningDocumentWriter.setAtnl(boolean)
.Delegates to
AnyDocument.unsafe(char)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output, automatically determiningDocumentWriter.setAtnl(boolean)
.Delegates to
AnyDocument.unsafe(char[])
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output, automatically determiningDocumentWriter.setAtnl(boolean)
.Delegates to
AnyDocument.unsafe(char[], int, int)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output, automatically determiningDocumentWriter.setAtnl(boolean)
.Delegates to
AnyDocument.unsafe(java.lang.CharSequence)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output, automatically determiningDocumentWriter.setAtnl(boolean)
.Delegates to
AnyDocument.unsafe(java.lang.CharSequence, int, int)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output, automatically determiningDocumentWriter.setAtnl(boolean)
.When no knowledge of what will be written, calls
DocumentWriter.clearAtnl()
to be safe.Delegates to
AnyDocument.unsafe(java.lang.Object)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output, automatically determiningDocumentWriter.setAtnl(boolean)
.When no knowledge of what will be written, calls
DocumentWriter.clearAtnl()
to be safe.Delegates to
AnyDocument.unsafe(com.aoapps.lang.io.function.IOSupplierE)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Returns:
this
writer- Throws:
IOException
Ex
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output.With no knowledge of what will be written, calls
DocumentWriter.clearAtnl()
to be safe.Delegates to
AnyDocument.unsafe(com.aoapps.lang.io.Writable)
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
unsafe
Deprecated.This method will remain, but its use is discouraged as it can be dangerousPerforms raw output. This is well suited for use in a try-with-resources block.With no knowledge of what will be written, calls
DocumentWriter.clearAtnl()
to be safe.Delegates to
AnyDocument.unsafe()
.- Specified by:
unsafe
in interfaceDocumentWriter
- Returns:
- a writer for direct output, which will ignore any calls to
Writer.close()
to be safely used in a try-with-resources block. - Throws:
IOException
-
getAutonli
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Gets if automatic newline (and indentation when enabled) is currently enabled, off by default.Delegates to
AnyDocument.getAutonli()
.- Specified by:
getAutonli
in interfaceDocumentWriter
-
setAutonli
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Enables or disabled automatic newline (and indentation when enabled).Delegates to
AnyDocument.setAutonli(boolean)
.- Specified by:
setAutonli
in interfaceDocumentWriter
- Returns:
this
writer
-
getAtnl
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Gets the at newline flag.Delegates to
AnyDocument.getAtnl()
.- Specified by:
getAtnl
in interfaceDocumentWriter
-
setAtnl
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Flags is at a newline.Delegates to
AnyDocument.setAtnl()
.- Specified by:
setAtnl
in interfaceDocumentWriter
- Returns:
this
writer
-
setAtnl
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Sets the at newline flag.Delegates to
AnyDocument.setAtnl(boolean)
.- Specified by:
setAtnl
in interfaceDocumentWriter
- Returns:
this
writer
-
clearAtnl
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Clears the at newline flag.Delegates to
AnyDocument.clearAtnl()
.- Specified by:
clearAtnl
in interfaceDocumentWriter
- Returns:
this
writer
-
autoNl
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Performs automatic newline whenDocumentWriter.getAutonli()
and notDocumentWriter.getAtnl()
.Delegates to
AnyDocument.autoNl()
.- Specified by:
autoNl
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
autoNli
Performs automatic newline whenDocumentWriter.getAutonli()
and notDocumentWriter.getAtnl()
, followed by automatic indentation when enabled.Delegates to
AnyDocument.autoNli()
.- Specified by:
autoNli
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
autoNli
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Performs automatic newline whenDocumentWriter.getAutonli()
and notDocumentWriter.getAtnl()
, followed by automatic indentation with a depth offset when enabled.Delegates to
AnyDocument.autoNli(int)
.- Specified by:
autoNli
in interfaceDocumentWriter
- Parameters:
depthOffset
- A value added to the current indentation depth. For example, pass-1
when performing a newline before a closing tag or ending curly brace.- Returns:
this
writer- Throws:
IOException
-
autoIndent
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Performs automatic indentation whenDocumentWriter.getAutonli()
,Whitespace.getIndent()
, andDocumentWriter.getAtnl()
.Delegates to
AnyDocument.autoIndent()
.- Specified by:
autoIndent
in interfaceDocumentWriter
- Returns:
this
writer- Throws:
IOException
-
autoIndent
Deprecated.Deprecated to keep out of the way in code assist, since this not expected to be used normally.Performs automatic indentation with a depth offset whenDocumentWriter.getAutonli()
,Whitespace.getIndent()
, andDocumentWriter.getAtnl()
.Delegates to
AnyDocument.autoIndent(int)
.- Specified by:
autoIndent
in interfaceDocumentWriter
- Parameters:
depthOffset
- A value added to the current indentation depth. For example, pass-1
when performing a newline before a closing tag or ending curly brace.- Returns:
this
writer- Throws:
IOException
-
writeOpen
Writes the beginning of the opening tag.- Returns:
- The element instance to use. This may substitute the element with a different instance, when appropriate.
- Throws:
IOException
-